-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add push notifications (for when app in background) #5
Comments
+1, just so I can track this. I'm interested in helping implement this. |
As much as I liked that I fear that this isn't possible right now. |
What about as an alternative, create an indicator that polls for messages every "X" seconds? Do you think this is a possible way to go? |
In addition to those problems, Google would probably block having too many different accounts using Hangouts from one IP. You'd have to let users self-host the server component. |
Canonical currently polls Google servers already. Maybe their server already queries the online status, or we could ask them to also poll it? It's an interim solution for Canonical, so maybe they let us use it too. Read more at "If Gmail can, why other apps can't?" on the ubuntu-phone mailing list. |
@StuntsPT yeah, that's what I like to do but currently there's no way for apps to run in the background on Ubuntu Touch. |
Humm... I was under the impression (I could be completely wrong, though) that if an app was on the indicator it did not get backgrounded (eg. networkmanager). |
@StuntsPT well, I don't think you can use this desktop-style indicators on Ubuntu Touch (or at least I haven't seen yet something like this :)). If it'd be possible, this wouldn't solve the problem, the app would probably still get suspended when it has no active focus. |
So, after researching this topic, here's what I have figured:
|
This might also be relevant: "Dekko", and email client also had issues with notifications. We can try to solve it the same way they do... Yup, Dekko is using |
@StuntsPT thanks for your research. account-polld might be a possibility. I think they stated that it's just meant as an interim solution though. |
You're welcome! |
@StuntsPT will this ever happen? 0.0 |
I think it's too early to tell. |
@tim-sueberkrueb look here. Get this number up 100 fold and it might just happen. But that's OT. |
@tim-sueberkrueb I think this should be what we need: |
You'd have to port some things to Go, but for simple polling all you'd need is a stripped-down |
@tdryer Thanks! I'll take a stab at that during the weekend if I have the chance. Also, @tim-sueberkrueb look here: |
You cannot install a plug-in for accounts-polld in an application package, so that is not an option. The accounts-polld will also go away when the services it currently has plug-ins for get push notifications. The only plug-in being used in accounts-polld now I think is for Twitter. |
@dobey ok, what about GMail notifications? Well, yeah, this would've required cooperation with Canonical or publishing it to the open store. That wouldn't be optimal of course :| I'd really like to see a proper solution for background processing from Canonical's side for this. |
At the moment Hangups doesn't notify a user about new incoming messages. That's partly because an application falls asleep as soon as it goes into the background. Push notifications are needed to address this problem. Without push notifications any messaging app makes only limited sense. (Users will complain soon.)
The Ubuntu push notification framework provides a server-side API to deliver notifications to registered clients regardless of whether the app is active or even started. When a push notification arrives the notification control would activate the app (when the user clicks on a notification).
References
Some findings from a (rather superficial) research:
The text was updated successfully, but these errors were encountered: