Delayed Push Notifications - Samsung Galaxy S7 Edge Questions and Answers

I've noticed that my S7E Exynos has a similar problem to my S6E (which I returned) with getting notifications delayed when idle for a while and would only appear when device would be picked up and unlocked. I've been using my Nexus 5 MM for the past couple of months (between the S6E and S7E) and never had this issue so I was wondering what might be causing this?
At first I thought it might be Samsungs 'App Optimization' so I've disabled all my apps that push notifications to see if that fixes it. Hopefully this 'App Optimization' doesn't affect MM Doze.
Thanks

ombadboy said:
I've noticed that my S7E Exynos has a similar problem to my S6E (which I returned) with getting notifications delayed/only when device would be picked up and unlocked. I've been using my Nexus 5 MM for the past couple of months (between the S6E and S7E) and never had this issue so I was wondering what might be causing this?
At first I thought it might be Samsungs 'App Optimization' so I've disabled all my apps that push notifications to see if that fixes it. Hopefully this 'App Optimization' doesn't affect MM Doze.
Thanks
Click to expand...
Click to collapse
From the Doze docs:
GCM is optimized to work with Doze and App Standby idle modes by means of high-priority GCM messages. GCM high-priority messages let you reliably wake your app to access the network, even if the user’s device is in Doze or the app is in App Standby mode. In Doze or App Standby mode, the system delivers the message and gives the app temporary access to network services and partial wakelocks, then returns the device or app to idle state
It means unless push-notifications are of high-priority, they will not be delivered until the device wakes up (by user interaction) or during a Doze maintenance window. This applies only when the device is in Doze mode, if it's yet to enter Doze, then that doesn't apply. Also,
An app that is whitelisted can use the network and hold partial wake locks during Doze and App Standby. However, other restrictions still apply to the whitelisted app, just as they do to other apps. For example, the whitelisted app’s jobs and syncs are deferred, and its regular AlarmManager alarms do not fire. An app can check whether it is currently on the exemption whitelist by calling isIgnoringBatteryOptimizations()

Exclude the desired applications from battery optimization. Please note, there are two optimization things, choose the one from Settings->Battery->click Battery Usage button -> More (right top) -> Optimize Battery Usage.

I've disabled stuff from App Optimization, but the problem still persists..

ssrij said:
From the Doze docs:
GCM is optimized to work with Doze and App Standby idle modes by means of high-priority GCM messages. GCM high-priority messages let you reliably wake your app to access the network, even if the user’s device is in Doze or the app is in App Standby mode. In Doze or App Standby mode, the system delivers the message and gives the app temporary access to network services and partial wakelocks, then returns the device or app to idle state
It means unless push-notifications are of high-priority, they will not be delivered until the device wakes up (by user interaction) or during a Doze maintenance window. This applies only when the device is in Doze mode, if it's yet to enter Doze, then that doesn't apply. Also,
An app that is whitelisted can use the network and hold partial wake locks during Doze and App Standby. However, other restrictions still apply to the whitelisted app, just as they do to other apps. For example, the whitelisted app’s jobs and syncs are deferred, and its regular AlarmManager alarms do not fire. An app can check whether it is currently on the exemption whitelist by calling isIgnoringBatteryOptimizations()
Click to expand...
Click to collapse
So, if your phone is in Doze, you won't receive push unless they are 'high priority' ? How does one set what is high priority or not? Kind of defeats the purpose of push notifications if you ask me. If I receive a WhatsApp for example, ideally i'd like to know I have one ASAP, and not wait for user interaction to receive it.

ombadboy said:
So, if your phone is in Doze, you won't receive push unless they are 'high priority' ? How does one set what is high priority or not? Kind of defeats the purpose of push notifications if you ask me. If I receive a WhatsApp for example, ideally i'd like to know I have one ASAP, and not wait for user interaction to receive it.
Click to expand...
Click to collapse
Nothing you can do about it, the developer has to switch to using GCM high-priority notifications. As the docs says,
If your server and client already uses GCM, make sure that your service uses high-priority messages for critical messages, since this will reliably wake apps even when the device is in Doze
If your users must see a notification right away, make sure to use a GCM high priority message
So developers are meant to use high-priority push notifications for such purposes. It's the developer's fault if they don't use GCM high-priority messages, which are optimized for Doze.
---------- Post added at 04:36 PM ---------- Previous post was at 04:34 PM ----------
Cst79 said:
Exclude the desired applications from battery optimization. Please note, there are two optimization things, choose the one from Settings->Battery->click Battery Usage button -> More (right top) -> Optimize Battery Usage.
Click to expand...
Click to collapse
That will not work. From the doze docs,
An app that is whitelisted can use the network and hold partial wake locks during Doze and App Standby. However, other restrictions still apply to the whitelisted app, just as they do to other apps. For example, the whitelisted app’s jobs and syncs are deferred, and its regular AlarmManager alarms do not fire. An app can check whether it is currently on the exemption whitelist by calling isIgnoringBatteryOptimizations().
High-priority GCM messages do not otherwise affect Doze mode, and they don’t affect the state of any other app. This means that your app can use them to communicate efficiently while minimizing battery impacts across the system and device. (meaning only high-priority notifications can wake up the device, other notifications are ignored)

ssrij said:
Nothing you can do about it, the developer has to switch to using GCM high-priority notifications. As the docs says,
If your server and client already uses GCM, make sure that your service uses high-priority messages for critical messages, since this will reliably wake apps even when the device is in Doze
If your users must see a notification right away, make sure to use a GCM high priority message
So developers are meant to use high-priority push notifications for such purposes. It's the developer's fault if they don't use GCM high-priority messages, which are optimized for Doze.
---------- Post added at 04:36 PM ---------- Previous post was at 04:34 PM ----------
That will not work. From the doze docs,
An app that is whitelisted can use the network and hold partial wake locks during Doze and App Standby. However, other restrictions still apply to the whitelisted app, just as they do to other apps. For example, the whitelisted app’s jobs and syncs are deferred, and its regular AlarmManager alarms do not fire. An app can check whether it is currently on the exemption whitelist by calling isIgnoringBatteryOptimizations().
High-priority GCM messages do not otherwise affect Doze mode, and they don’t affect the state of any other app. This means that your app can use them to communicate efficiently while minimizing battery impacts across the system and device. (meaning only high-priority notifications can wake up the device, other notifications are ignored)
Click to expand...
Click to collapse
What doesn't make sense though is why did I never have this issue with my Nexus 5 (running MM) and I have this using my S6E and S7E (again, with MM)

ombadboy said:
What doesn't make sense though is why did I never have this issue with my Nexus 5 (running MM) and I have this using my S6E and S7E (again, with MM)
Click to expand...
Click to collapse
Its all about timings. Your device enters Doze after 30 mins of being stationary, if your device moves then the time will be reset and it'll wait another 30 mins. Push notifications will be only delivered if it's high priority, otherwise it'll be delivered during a maintainence window or when you turn on your device. It could be that your Nexus 5 didn't enter Doze mode as often as your S7/S6 does, maybe you move your S6/S7 too much or you let it stay in Doze mode for longer (maintainence windows become less frequent as time passes by)
Try putting both your Nexus 5 and S7 on idle for an hour and then send a test email to your GMail account (should be added to the GMail app on both) and see which one gets it first.
There's a small possibility that Samsung modified certain values regarding Doze.
Sent from my Samsung Galaxy S7 Edge using XDA Labs

What notifications aren't coming through?
Sent from my SM-G935T using Tapatalk

Nearly all. Ive noticed WhatsApp and Inbox, but it seems even Sync for reddit is having this issue (evem worse for the latter as I need to open the app to get the notification which defeats the purpose of having notifications completely).

jrwingate6 said:
What notifications aren't coming through?
Sent from my SM-G935T using Tapatalk
Click to expand...
Click to collapse
Nearly all. Ive noticed WhatsApp and Inbox, but it seems even Sync for reddit is having this issue (evem worse for the latter as I need to open the app to get the notification which defeats the purpose of having notifications completely).

Just tried an experiment. Put my phone down next to my gf's HTC A9 for 45 mins (so they both enter Doze), sent an e-mail to both; HTC received and showed notification fine, S7E nothing.. Had to open the Inbox app to even get the e-mail. Both on the same WiFi network.
edit: Tried my Nexus 5 as well, and also on/off WiFi and 4G, only one that has the issue is the S7E, all devices on MM.

ombadboy said:
Just tried an experiment. Put my phone down next to my gf's HTC A9 for 45 mins (so they both enter Doze), sent an e-mail to both; HTC received and showed notification fine, S7E nothing.. Had to open the Inbox app to even get the e-mail. Both on the same WiFi network.
edit: Tried my Nexus 5 as well, and also on/off WiFi and 4G, only one that has the issue is the S7E, all devices on MM.
Click to expand...
Click to collapse
Same problem happened without touch nothing...

Same here. Have you installed the latest OTA? Few people on Reddit have same issue and all seem to have it after the update. And me. I have to open WhatsApp to receive messages.
Sent from my SM-G935F using Tapatalk

undercover said:
Same here. Have you installed the latest OTA? Few people on Reddit have same issue and all seem to have it after the update. And me. I have to open WhatsApp to receive messages.
Sent from my SM-G935F using Tapatalk
Click to expand...
Click to collapse
It is the latest APF2 update from Samsung. My phone was running great before that update. Now, all the messages are delayed and i have to open the apps to receive them. It has nothing to do with Doze or Battery optimization .
I decided to factory reset the phone and now it is working as normal (but i have to admit that I factory reset the S7 edge more than any other phones in my life!!!)

Same issue I'm having as well with my Galaxy S7 (AT&T).
Push notifications are severely delayed after the phone has been idle for awhile.
If I turn on my screen, notifications all come rushing in at once.

same issue as above. when left for awhile no notifications are coming through until the device is picked up and turned on. even text messages are not being notified.
any fixes for this? or anything..

batteriesNI said:
same issue as above. when left for awhile no notifications are coming through until the device is picked up and turned on. even text messages are not being notified.
any fixes for this? or anything..
Click to expand...
Click to collapse
As far as I know, there aren't any fixes yet. I guess we all have to wait till an update is released that fixes the problem.

It seems obvious my wife had the same problem over 1 week and it was because she had enabled power saving mode
?
Sent from my SM-G935W8 using XDA-Developers mobile app

NYC718 said:
As far as I know, there aren't any fixes yet. I guess we all have to wait till an update is released that fixes the problem.
Click to expand...
Click to collapse
Hi,
I think I was having a similar issue, and I believe it's related to the Power Save feature, are you with that feature turned on?
All the best,
~Lord

Related

AT&T Mark The Spot is a Security Risk.

I have AT&T Mark The Spot installed on my phone. It's designed to be an easy way to report problems to AT&T.
I noticed it uses excessive permissions a few months ago.... An average app having about 7 permissions... "Permission Dog" reports 21 permissions including:
Access Coarse Location
Access Fine Loacation
Access Network State
Access Wifi State
Change Wifi state
Battery Stats
Read Owner Data
Read Phone State
Wake Lock
Receive Boot Completed
Read SMS
Modify Phone State
Change Network State
Get Tasks
Read Logs
Receive WAP push
Send SMS
Persistant Activity
Vibrate
Read Contacts
Last night my phone would not go to sleep and today I received a phone call and the app force closed itself. This would suggest that there's quite a bit of monitoring that my phone is subject to by AT&T by simply having this app installed.
If you want to report a network problem, install the app, then uninstall it after reporting. I just wanted to get the word out.
why not load lbe privacy guard and disable most of the permissions it is asking for?
Krad said:
why not load lbe privacy guard and disable most of the permissions it is asking for?
Click to expand...
Click to collapse
My concern isn't how to disable it's normal operation. My concern is it's normal operation is monitoring everything. It's obviously doing alot more then it is marketed to do.

Late or Missing Notifications (S7 edge)

Is anybody with the S7 or S7 edge on Sprint having problems with various apps delivering push notifications late or not at all? I've noticed this specifically with apps like CNN and Reuters but also with a neighborhood app called "Nextdoor" that I use. I will get a notification about a message 10-15 minutes after I already received and checked it on the web version on my computer. I came from an S5 and never had anything like this before. Is this perhaps the power saving feature that suppresses background app activity? I would think it wouldn't do that for apps I very frequently use. No issues with text messaging notifications or anything directly related to the carrier.
Also - these have all been while on WiFi vs mobile data. It's really the only negative thing I've found so far. I am getting great battery life and standby drain.
Thanks!
I've noticed this only very rarely. For the most part push notifications come through instantly for me.
I think it has something to do with power saving feature, when enabled.
I was missing my Gmail notifications.
meyerweb said:
I've noticed this only very rarely. For the most part push notifications come through instantly for me.
Click to expand...
Click to collapse
It's happening really frequently for me. I will have to try adjusting my power saving functions.
Nextstep said:
I think it has something to do with power saving feature, when enabled.
I was missing my Gmail notifications.
Click to expand...
Click to collapse
Happening with a lot of apps for me - but mainly FB Messenger and Gmail. With FB Messenger the orange notification number on the app itself will display but I never get a sound/vibrate or notification bar notification. With Gmail it's like my email is not syncing but once every few hours instead of pushing notifications (my notification settings are fine).
I will have to try to mess around with the power saving function.
Having the same issue S7. No notifications from WhatsApp, FB messenger etc. It seems like when the screen goes off it also turns internet off as each time I open the FB messenger it displays a message that it's connecting... not sure how to go from here :/ tried application manager options already
Yep, quite a few apps for me are affected. Using the stock settings for power settings, but I guess I'll have to play around to find which setting is causing this.
I checked and I have all power saving options disabled, so that can't be it...
If I have Power Saving on I miss all notifications until I open the specific app. Samsung changed it, hate it now I have to use my phone without Power Saving!
Nextstep said:
If I have Power Saving on I miss all notifications until I open the specific app. Samsung changed it, hate it now I have to use my phone without Power Saving!
Click to expand...
Click to collapse
I have power saving turned off, but still have this problem.

Not receiving GCM push notifications through doze

Not sure when the problem started or if I've always had it. Got my Nexus in March and as long as I can remember I've not received push notifications when phone is in doze. I've disabled battery optimization for apps such as Gmail, Untappd, Xbox smartglass, Pushbullet. I've made them high priority which I know is really more for DND. When my phone is awake these notifications come instantly, but after it's sat for a while and gone into doze then everything comes through delayed and all at the same time... presumably when doze does its notification pull once an hour'ish. I've tried apps like Push Notification Fixer non-root with no success. I had unlocked and rooted and was running custom kernel and recovery. Thought that could be the problem so I flashed stock everything and relocked it... problem still persists. I'm now on the Android N beta but nothing has changed with notifications.
I contacted the Untappd developer about it because it was the first app I noticed. I actually don't receive push notifications from that app at all, however I did on my previous phone with no issues. My wife's S7 works with that app, so it's my phone not the app. Not sure if receiving zero notifications from his app and receiving delayed notifications from everything else is related. The developer tried to send me a manual notification through GCM and the response was:
Array
(
[title] => Untappd Test Notification
[message] => This is a test notification from Greg at Untappd. If you
get this, let me know.
[pushType] => user
[action_id] => 0
[push_id] => 0
)
Array
(
[httpCode] => 200
[response] =>
{"multicast_id":5762032874804939302,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1462795523634333%2d685105f9fd7ecd"}]}
)
He said it looks like there is a problem with push notifications and my device. Considering the issues I'm having with non-optimized apps not sending notifications immediately, I'm inclined to agree. Posted over at the Google Nexus forums but got zero meaningful support. Hoping someone here can better decode this GCM push message as well as offer insight into the issue as a whole. I'm open to any suggestions on possible fixes and how to proceed troubleshooting.

Big problem with IM's (viber and whatsapp) and push notifications

MY girlfriend bought this phone a month ago.
There were problems from the start - sometimes, but rarely, she didnt receive notifications from both IM's she is using, Viber and Whatsapp. Only when she enters the app, she sees that there are actually new messages - I checked Emotion UI settings for Battery manager and both apps are protected from the start (should work in the background). It wasnt such a big deal until today when she noticed that not a single message (7 viber and 2 whatsapp messages) didnt "go through" and only when the app is opened, she sees the message received. On top of that, problem got even bigger in the evening - in the middle of chat session, she doesnt even receive messages, until certain delay. I checked, it was not mobile data/wifi issue as everything else was working fine, one phone next to another, I send her a message and her's phone doesnt receive, while her phone is pretty much able to run a 1080p video from YT
Any solution to this .. ? she needs Viber very much as her work group from her job uses Viber extensively and she cant afford to miss new messages
tried: restarting, checking for EUI blocking apps, checked data/wifi for always ON on sleep, checked everything there is ..
pls help XDA!
Have u allowed notifications? Go to settings/apps and find whatsapp there.Tap on Notifications and Allow Notifications.
I have this same problem with others apps I tried ever everything, I think it's problem with Huawei optimizations (same says others, maybe this will be fixed in Android N).
i had a similar problem with my other apps...i just made them system apps... you need root for it, but no problems since
I Dont have any such issue.I Have tried sending Whatsapp message on my phone from another phone and it gave me notification instantly.
I'm using Viber, Telegram and whatsapp on this phone and I don't have such issues.... I'm not using any of the battery management or optimization apps by the way.
Sent from my vivo V3 using XDA-Developers mobile app
I have the same problem and still found no solution... In WhatsApp, you can see the when it goes off on your mobile - just open the desktop WhatsApp version on your PC and wait until a message saying something like "your mobile is not connected" appears.
Timura said:
I have the same problem and still found no solution... In WhatsApp, you can see the when it goes off on your mobile - just open the desktop WhatsApp version on your PC and wait until a message saying something like "your mobile is not connected" appears.
Click to expand...
Click to collapse
try to set in phone manager all apps in protected apps section and keep the phone in performance power plan not smart...
snapdesign said:
try to set in phone manager all apps in protected apps section and keep the phone in performance power plan not smart...
Click to expand...
Click to collapse
it worked for me when adding the apps i was having problems with to the phone manager exceptions
pewtel said:
it worked for me when adding the apps i was having problems with to the phone manager exceptions
Click to expand...
Click to collapse
i have the similair problem
i add the apps to protected apps but nothing changes, still no notifications
any new solutions, maybe?
What battery profile are you using? It looks like Smart is affected by this problem, while Performance is not. I guess it somehow breaks the GCM service used to deliver push notifications for those apps.
TheKingOfPain said:
What battery profile are you using? It looks like Smart is affected by this problem, while Performance is not. I guess it somehow breaks the GCM service used to deliver push notifications for those apps.
Click to expand...
Click to collapse
I have checked and power plan is on performance..., still no notifications
Yeah, it happens to be broken on Performance too.
Damn phone.
I have the same problem whith whatsapp from time to time, this is a huge problem, can't believe that huawei hasn't adreessed it yet...
daviderules said:
I have the same problem whith whatsapp from time to time, this is a huge problem, can't believe that huawei hasn't adreessed it yet...
Click to expand...
Click to collapse
Guys found a solution for the problem but need somebody to test to confirm. I connect VPN with opera max or other VPN app and then i get notifications as normal with mobile data. Anybody who can try and see if it works for them too?
I've had the same issue with mine since I got it. In my case I'm not using WhatsApp but Ebay and Amazon Seller apps. So that means that the problem is the phone, not something specific to any app. I often get a backlog of notifications when I unlock it, all at once.
I've tried every bit of advice offered in this thread and elsewhere. I'm now trying the Opera Max app - it could well be a useful work-around. I suppose if something changes the way it communicates by adding a proxy then it may be enough to bypass whatever thing is causing the problem, hopefully just until Huawei get round to actually fixing this widespread problem.
Hello!
Regarding push notifications issue i have some news.
- on P9 Lite, VNS-L21, new stock with B114 firmware, whatsapp, skype, gmail - works fine on both profiles (smart and performance)
- after a few days i make update from B114 to B120, B131 and B151 firmware and that issue appear only at whatsapp (skype and gmail work fine)
- first workaround was to maintain active whatapp application when device enter in sleep, simply start application and notifications appears.
- second workaround is to revert firmware to B114 version on wich my device work fine with whatsapp.
- final workaround is in Huawei yard....
PS: if whatsapp is closed notifications appear when i open application, not when i wake up device...
My firmware is VNS-L31C432B130 which I installed manually, using the procedure on this forum. I did this to enable the second SIM, as for some stupid reason they disable this feature on UK phones, and Carphone Warehouse don't tell you about it when you order one.
It looks like it's pretty widespread though - there seem to be lots of reports on the web, so I don't think I've caused this problem.
I got a notification from the eBay App over 2 hours late this morning, after I installed Opera Max the other day. It's possible that this was an error at ebay's end though - their IT systems can be quite random sometimes anyway, so I wouldn't take this as evidence that Opera Max doesn't fix the problem! There are far too many variables in the chain to conclude anything really.
However, I've just manually updated the firmware from VNS-L31C432B130 to VNS-L31C432B151. I've checked and all my app and performance power settings are still set OK.
If my phone now starts working properly then I won't know whether Opera Max or the firmware update fixed it. If so then I'll try uninstalling Opera Max so I can report back here on it.
Update: after a few reinstall of B122, B131 and B151 firmware, notifications of whatsapp works again properly, but now i have problem of syncing yahoo mail account (sync error)....

App battery optimization issue?

I'm trying to figure out if there is anything besides the normal intelligent control/optimize/don't optimize that could be affecting an app working in the background?
I use Google Messages on both my phone and PC (messages.google.com) to keep from having to pick up my phone a billion times a day. I had very few issues with my phone showing as "Connected" in the web app with my OP7P, but within a minute or two of locking my screen on the OP8P, the web app shows "connecting" and won't typical work again until I wake up my phone and open Messages (waking the phone alone isn't enough).
Messages is set to "Don't Optimize" in the app settings, just like it was on my OP7P. Is the 8P more aggressive about letting apps stay awake?
**EDIT**
Google Messages is the number one app under "detailed usage" at 11% for the day, so it's definitely not for lack of running. Maybe it it's just an issue with the app on this phone.
I'm using mine now, Mac though, but it works from home too.
Haven't changed any settings for battery optimization.
Forget computer on messages for web.
On phone, force close, clear data, uninstall app.
Reboot.
Reinstall app, reconnect to g messages via QR
Also im using the app not the web version, seems to work better.

Categories

Resources