Android (various versions) – Delayed push notifications on mobile data - Android Q&A, Help & Troubleshooting

I have a phone with Nougat 7.1.1, but also older phones (eg with Lollipop and Gingerbread): the common trouble on all phones is that I have an annoying issue when connected using mobile data:
all the apps which relies on push notifications (eg whatsapp, facebook messenger, Hangouts and Gmail) doesn’t receive push notifications in realtime or in a acceptable time: I mean that I receive notifications - delayed - also after 30 minutes or i receive them only when I turn on the screen. On all these phones I use a SIM card of same carrier.
When I am connected using Wifi (so without mobile data) I receive notifications in realtime (in about 1 or 2 seconds).
What I checked is that all these apps have background data always enabled and I don’t use any battery saver app.
Is like if the mobile data, after some minutes of inactivity, falls in a sort of idle status, and needs to be kept awake: in facts, if I use a method to run a ping command every X minutes, the notifications are received in an acceptable time (in few seconds).
Not all of my phones are rooted: on the phones which are rooted I solved by installing the app called “Push Notification Fixer”; I am aware of the fact that there’s also available the “NO ROOT” version of such app, but doesn’t works for me.
I said “if I use a method to run a ping command every X minutes, the notifications are received in an acceptable time (in few seconds)”: I noticed that mobile data of my carrier falls in a “sleep” state after about 7 minutes: so I setup the following command in a Terminal Emulator:
Code:
ping -i 420 www.google.com
420 is the time in seconds, which is equal to 7 minutes.
The ping method, however, cause other issues: it cause a lot of wakeups (as I can see from Better Battery Stats) and sometimes I notice that it hangs: I excluded the Terminal Emulator from battery optimization and from data saver (and I enabled the option “Wake Lock” (to keeps phone from sleeping while running a command) , but this doesn’t help: I also excluded Google Play Services from battery optimization/Doze and I ensured that background data is not restricted
Obviously I’ve also tried to wipe applications cache and uninstall and reinstall applications: however, since with Wifi I don’t have any trouble, seems not a fault of the phone or apps, since I faced this issue on all phones and different versions of Android: always occurs with mobile data but not with Wifi.
Is sure the fact that when I am on mobile data the phone needs to be awake to receive the notifications. I repeat that when I am connected using wifi, the notifications are instant.
I don’t think that Doze is the culprit: as I’ve said I excluded apps and Google Services from battery optimization/Doze.
I also disabled the data saver option. I have notifications delay issue only when connected with mobile data: furthermore the signal strenght of my carrier (4G) is good.
What can I do (a robust and reliable method) to keep the mobile data connection always active?
I also tried by using “Connection Stabilizer” from the Play Store: this app, also have a method to run a ping command every X seconds or minutes, but also this app suffer from the same issue: after a while the ping command no longer works.
I heard of the fact that this issue could be related to fast dormancy: unfortunately, since the phone is not rooted, I can't disable fast dormancy.
I installed this app: https://play.google.com/store/apps/details?id=eu.thedarken.wl (Wake Lock - PowerManager): This app implemented a Partial Wakelock: in this way the notifications arrives in 1 - 2 seconds, but the downside (due the Partial wake Lock) is a battery drain.
No one else, here, faced the issue of delayed notifications when connected with mobile data?
As I've said, with Wifi I don't have any issue with notifications; furthermore I am not "forced" to rely on wakelocks.
Kind regards.

were you able to fix this ? i am having the exact same problem on my note 8 running pie with no solution so far

Related

[Q] Whatsapp battery drainage - TITAN

Hi Guys,
I have recently installed whatsapp on my HTC Titan, - its a great app, has drastically reduced my international call and text cost.
How ever the battery life of my phone is taking a huge hit. i am talking about 7 hours total from full charge - when i engage in continuous chatting on the app.
Is anyone experiencing any similar issues? - will be grateful if any one can help figure out the reason for the drain
Cheers
JP
jpmalum said:
Hi Guys,
I have recently installed whatsapp on my HTC Titan, - its a great app, has drastically reduced my international call and text cost.
How ever the battery life of my phone is taking a huge hit. i am talking about 7 hours total from full charge - when i engage in continuous chatting on the app.
Is anyone experiencing any similar issues? - will be grateful if any one can help figure out the reason for the drain
Cheers
JP
Click to expand...
Click to collapse
Yes, this is because Whatsapp is continiously checking for new messages using your cellular connection. This means the modem is ALWAYS engaged, and you're practially always connected.
Some random website gave call time spec: Up to 6 h 50 min (3G)
This seems about right with your battery usage.
Being connected with 3g basically counts as talk time, Since the mic and speaker are the least of your worries battery consumtion wise.
Normal synchronisation like email is set at 30 minute (customizable) intervals.
This saves a lot of battery power.
Basically, this goes for any app that uses a continious internet connection (e.g. browser, ad supported app, online navigation, chat.)
Note that in some research a while ago someone tested battery usage in games, and it turns out that displaying ads uses more power than running the game itself (assuming the game is off-line).
http://research.microsoft.com/en-us/people/mzh/eurosys-2012.pdf
Whatsapp is one of those apps that uses continious internet connection.
Also recieving email's "as they arrive" also drains power. So does facebook/messenger chat and any app that refreshes their data in the background frequently OR that is ad supported.
I'm using whatsapp, receiving messages during all the day and my battery stands with no problem until night, 16-18 hours. I think that the battery problem is more related with the time you are writing messages, with the screen, our huge screen, on.
I have had Whatsapp on since day 1 and never had any issues with battery and Whatsapp.
If you do continous chat for 6-7 hours I think your culprit is your screen brightness and CPU that keeps your phone locking and unlocking! I get occassional messages on Whatsapp throughout the day and I manage to reply them whenever I have some spare time. Same with emails.
You can even try anything that will keep your phone "awake" in foreground i.e. keep communicating via emails or e-books with screen on and data on - you will have battery drain.
But same activity on intermittent basis will not cause this drain.
Also, your network coverage - the farther you are from the network masts, the quicker you will drain your phone. Sadly we can't do much about it unless you live in a super-connected area.
@jpmalum: are you using push notifications?
@kpn: actually, WP7 has a completely different background processing policy compared to Android. Incoming notifications flow through MS's push notification service which greatly reduces network access. Periodic polling by apps is restricted to intervals of 15 minutes minimum, and device wakeups for different apps are coalesced to avoid each of them generating its own 3G tail like on Android.
Also, KPN should really fix their network settings, tail times on the KPN network are ridiculous, the modem stays in FACH for up to a full minute! I am aware that this is probably better for browsing but come on, a _minute_, really?
I have some power traces from a Galaxy Nexus with a background process doing some network stuff once per 5 minutes. On KPN, the app uses 277.59J/hour, versus 182.05J/hour and 205.47J/hour on TMobile and Vodafone respectively. The difference is not due to signal strength, but comes purely from tail time. Hopefully fast dormancy and the new enhanced FACH state will fix this in the future, but they require carrier support to work.
(full disclosure, I'm a PhD student doing research on mobile phones)

[Q] Push Notifications Delayed/ Undelivered[EXCEPT GMAIL]

Hi everybody,
My device is rooted with pure stock 4.2.2 and mediatek 6572 processor.
Problems: (ONLY OVER WIFI and SCREEN OFF)
1. all my notifications are either delayed or undelivered, when screen is off.(not SMSes but those over WiFi)
2. GTalk messages always take 5 minutes(Heartbeat Interval duration) when screen off
3. Play Store apps are never updated/ downloaded when screen is off, start right after screen is on
4. IM apps like Xabber never get IMs until screen turned on
Exceptions:
1. NO PROBLEMS WHILE SCREEN ON
2. Gmail ALWAYS gets email exactly after 30 seconds or more(possibly rules out connection timing out)
3. Above problems disappear using MOBILE DATA
4. NEVER HAPPENS during charging
5. With LOCATION REPORTING enabled, Talk messages reach within 30-40 seconds, with screen off.( battery consumption doubles also)
ALREADY TRIED:-
1. In sleep policy set to Always On
2. Used PNF and set heartbeat interval at 5 minutes, to no avail
3. PORT 5228 not blocked on router
4. WiFi optimizations turned off
5. No battery saving mode or 3rd party app enabled
6. Background Data Restrictions disabled
7. Same thing in SAFE MODE
8. Did FACTORY RESET
9. Tried logging in from another Google account
Any help is greatly appreciated!!
same problem here, have you found the solution?
I have done your own attempts..but nothing.
i have two android phones with CM11, 1 has no delay and one yes
Sounds like the device is going into a very deep sleep when the screen is off. Most likely a software setting or a kernel setting that some use boost battery life. Also make sure not to have greenify installed.

[Q] High CPU usage due to system_server

My phone is getting really hot (like, uncomfortable to have in my pocket).
I went to dev options, and activated the overlay cpu usage to check which process were eating up my CPU.
Top of the list 99% of the time is system_server.
Other symptoms:
– I can't open a terminal session (terminal emulator starts but no prompt, I can't kill it either)
– installing an app takes ages (both the downloading and the installing)
– the wifi symbol in the status bar has both arrows (upload and download) displayed all the time
– some network related activities seems to be very slow
com.google.android.tts and android.process.acore make also regular visit to the top 3 processes, but they are far from system_server.
I have CyanogenMod 11 M3 on a google edition of the S4, encryption is on. I have around 2GB free on my internal storage and 20GB on the external SD.
Any further troubleshooting ideas?
Its an app. Probably one with spyware to be more specific. Either way it's constantly sending or receiving data. Have you installed anything around the time this started happening?
I will deinstall progressively the latest apps I installed and see if it helps.
What I noticed too:
– re flashing CM 11 M3, cleaning cache and davlik cache helps. But just for a short while. After a couple of hours it starts again.
– the network activity is constant but pretty low. Below 10kB/s all the time, regularly below 1kB/s
– I can't uninstall anything right now, every app I uninstall says “uninstalling” forever.
– turning airplane mode on makes it a bit better: phone is still hot, but not uncomfortably so.
How does an app hide its process like this without root access? I didn't thought it was possible in Android. I can only see system_server...
i have the same problem with you
this problems starts couple days ago, and until now i still curious of what happen to my phone
i used xperia z1 now,
does anyone can help to solved this problem

wifi and mobile data disconnects when screen goes off even with wifi ALWAYS ON mode

My wifi and data connection disconnects when screen goes off on my huawei ascend mate 2. For samsung phones it can be solved with secret codes like ##0011# but for huawei phones the secret codes are not working. or do you know a working secret code on hardware level for this? my power save mode is off. wifi is set on always on mode. auto synchronisation is on. my apps can all run in background. So I have set off all possible energy saving option for all apps. besides I have downloaded apps to keep wifi always on. but when I put it on always on mode on this app. It mentions that the wifi set on always on mode. but after 2 seconds I open the app (wifi always on app) it says that the wifi is on saving mode and not in always on mode. So there is another more dominant program (probably the huawei custom ROM) who has more privileges than a normal app so that it avoids that wifi is on always on mode.
Sometimes even when the screen is on, viber whatsapp does not receive calls or messages you should launch the app to receive calls and messages. you would say that it is a synchronisation problem. No. No. sync is on for all accounts. all accounts have full access on all my data and on the battery. All settings about battery saving options are set off.
I have sort of the same issue. I use KIK to talk to a lot of friends and on other phones I've had (LG G3 previously), I could load up the task manager and clear away all apps and it had no effect on getting messages. Now, with the HAM, if I clear away running programs, including KIK, even though I have KIK set as a protected app, I will not get any messages and people who send me messages say it stays on S (sent) as opposed to D (delivered). If I clear out all running apps and then load KIK up again before turning off the screen, the messages get delivered and I get notification. It's a little annoying, but keeping the program I want to receive notifications, running, seems to solve the issue for me.

Automatic Android Sync (and how to disable it?)

My non-tweaked, non-rooted Redmi 5 has the annoying habit of connecting (via Mobile Data) to the net to sync/check for updates every single morning. It seems to override everything I do (I've disabled mobile data, I've cleared the list of Apps and System Apps that can use Mobile Data), I've set a limit of 0KB. Nothing works. The only thing I haven't tried is disabling Background Data for Android System, and that's because it's enabled by default and grayed out, meaning I can't modify it.
Is there a way to restrict all mobile data use for the Redmi 5, the way I was able to do with all my other android-powered phones? And is this problem a "feature" affecting all Redmi 5 phones, or a bug affecting only mine?
There is no way to sync apps and accounts if the option for sync is disabled. It's quite hard to understand by your explanation - does your mobile data and sync options gets automatically turned on after you've turned them off? And what you mean by "Android Sync" and "sync/check for updates"? If you mean that the device is checking for ROM updates, you can turn off that in Settings > About phone > System Update. Just know that without Wi-Fi/mobile data and sync option there is no way for syncing anything on your phone.
skl739 said:
There is no way to sync apps and accounts if the option for sync is disabled. It's quite hard to understand by your explanation - does your mobile data and sync options gets automatically turned on after you've turned them off? And what you mean by "Android Sync" and "sync/check for updates"? If you mean that the device is checking for ROM updates, you can turn off that in Settings > About phone > System Update. Just know that without Wi-Fi/mobile data and sync option there is no way for syncing anything on your phone.
Click to expand...
Click to collapse
I have not turned Sync off altogether. I have, however, activated "Wi-Fi Only" under Settings>Accounts>Sync.
To recap, Wi-Fi only Sync is activated, Mobile data is off, Under "Restrict Data Usage" I have Deactivated Mobile for every single Installed or System App, I've set a Mobile Data limit of 1MB with automatic deactivation of Mobile data when 60% of the limit is reached. And yet, every morning Android System (whose settings are Mobile: Off, WiFi: On, , Background Data: On with no option to deactivate) overrides all these settings, turns on Mobile Data and performs some basic sync operation (roughly 100KB in volume). While the charges are negligible (around 1 cent a day), a. they will be higher if I'm abroad and b. I find it very annoying that there seems to be nothing I can do to prevent this unauthorized data exchange (I'm new in MIUI, but I never, ever had a similar issue with any of many Android-based phones I've used in the past).
ndmushroom said:
I have not turned Sync off altogether. I have, however, activated "Wi-Fi Only" under Settings>Accounts>Sync.
To recap, Wi-Fi only Sync is activated, Mobile data is off, Under "Restrict Data Usage" I have Deactivated Mobile for every single Installed or System App, I've set a Mobile Data limit of 1MB with automatic deactivation of Mobile data when 60% of the limit is reached. And yet, every morning Android System (whose settings are Mobile: Off, WiFi: On, , Background Data: On with no option to deactivate) overrides all these settings, turns on Mobile Data and performs some basic sync operation (roughly 100KB in volume). While the charges are negligible (around 1 cent a day), a. they will be higher if I'm abroad and b. I find it very annoying that there seems to be nothing I can do to prevent this unauthorized data exchange (I'm new in MIUI, but I never, ever had a similar issue with any of many Android-based phones I've used in the past).
Click to expand...
Click to collapse
Uhm, Android System or MIUI ROM itself can't override your settings. Chances are that you probably have some malicious app installed and it has permission to manage your system/background connectivity settings. You can check this by going to Settings > Permissions > Other permissons > Modify system settings.
Nope, no malicious app there (only Skype and the preinstalled Music and Mi Remote apps have permission to change system settings). Besides, the only app that has actually consumed Mobile Data all this time iss, according to the Usage stats, Android System.

Categories

Resources