Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add push notifications (for when app in background) #5
Comments
StuntsPT
commented
Sep 15, 2015
|
+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. |
StuntsPT
commented
Sep 15, 2015
|
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? |
tdryer
commented
Sep 16, 2015
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. |
bittner
commented
Sep 16, 2015
|
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. |
StuntsPT
commented
Sep 16, 2015
|
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. |
StuntsPT
commented
Sep 16, 2015
|
So, after researching this topic, here's what I have figured:
|
StuntsPT
commented
Sep 16, 2015
|
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. |
StuntsPT
commented
Sep 17, 2015
|
You're welcome! |
|
@StuntsPT will this ever happen? 0.0 |
StuntsPT
commented
Sep 17, 2015
|
I think it's too early to tell. |
tim-sueberkrueb
added
the
enhancement
label
Sep 17, 2015
StuntsPT
commented
Sep 17, 2015
|
@tim-sueberkrueb look here. Get this number up 100 fold and it might just happen. But that's OT. |
StuntsPT
commented
Sep 17, 2015
|
@tim-sueberkrueb I think this should be what we need: |
tdryer
commented
Sep 17, 2015
You'd have to port some things to Go, but for simple polling all you'd need is a stripped-down |
StuntsPT
commented
Sep 18, 2015
|
@tdryer Thanks! I'll take a stab at that during the weekend if I have the chance. Also, @tim-sueberkrueb look here: |
StuntsPT
referenced this issue
Oct 9, 2015
Closed
Copying a message that contains only a link will also copy the html tags. #27
dobey
commented
Jan 22, 2016
|
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. |
bittner commentedSep 2, 2015
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: