[Q] Push Notifications Delayed/ Undelivered[EXCEPT GMAIL] - Android Q&A, Help & Troubleshooting

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.

Related

battery

what is the best way to save
battery?
If you don't get urgent calls or no calls at all (like me) then while using you phone put it in flight mode
Also install a task killer you like from the market and kill all the processes you don't need (maps,play service) or go to settings and force stop them
And if you are addicted to your mobile (like me) then plug the charger with extention wire or give up your addiction
Sent from my A11 using xda app-developers app
Put this together a long time ago and it was for the Motorola Droid Bionic. Hopefully some of the items will help you:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you are having short battery life here’s a list of things that can help. Just read through the list and select the items that fit with the way you want to use your phone. Not all items will work for everyone and this list was written for the Droid Bionic but most should work for your phone too:
- Don't use an automatic task killer--not even the one that comes with the phone. Reboot your phone and look at what's running. If anything that you've installed is running and there's no reason for it, then uninstall it and find an alternative that behaves. Ignore any stock apps that run on boot as I've found them to be more or less benign.
- Weather widgets, live wallpapers, news/social feeds, any app or service that you use that runs--do without it if you can. If you can’t do without it, lengthen it’s refresh time.
- Don't use antivirus
- Set your WIFI sleep policy to never. The default is "turn off when screen turns off". This will cause the wifi to reconnect every time you open the phone. From any Home Screen select Menu/Settings/Wireless & Networks/ and then use the Menu button to see some new options - select Advanced. Then select Wifi Sleep Policy and set it to Never. Home key to return to Home Screen.
- If you have access to wifi, leave it toggled on as it is more efficient than 3G. Wifi consumes less battery power than 3G.
- I leave GPS toggled on too by the way. Apps use it as needed. When I'm done with Maps or an app that uses it, I'm sure to return to the home screen so GPS can stop. Under wireless settings turn on "Google location services" so that an app is able to use network resources to get your location instead of GPS. I have "VZW location services" turned off--don't know why that option is even there. By the way, I increase the speed of voice output > text to speech > speech rate because I like the directions to get spit out faster. That saves a bit of battery. Turning off the display and just listening for directions help. Also, often I just get the directions and then exit back to the home screen: GPS uses so much battery I try to get it over with ASAP.
- I have my battery set to "Performance Mode" and data is on all the time because I am on call 24x7. If you don't mind, try out a more conservative battery profile to save more gobs of energy.
- Set screen brightness to "Automatic"
- Under Accounts, click on any account listed and turn off sync for any items that you're not interested in syncing. For example, Google Books if you don't use it.
- Don't use Backup Assistant--I prefer syncing my contacts with Google. You don't need both. Also go into your contacts > menu > display options > backup assistant > UNCHECK. Also do contacts > menu > more > settings > contact storage > and select your Google account and "remember this choice"
- Turn on Bluetooth only when you are going to use it.
- Consider turning off voice privacy. This may not be a big deal but it will save some processing (and therefore battery). It may also improve call quality.
-Turn off haptic feedback, animations, and any un-needed sounds in Android settings and in your apps
- Set your screen timeout to as low a time as you can stand (I use 1 minute) and manually turn the screen off when you’ve finished using the phone.
- Turn off in-pocket detection. In-Pocket Detection has been the source of many issues already.
- Keyboard: turn off vibrate on key press and sounds for any keyboards you use
- Use a red or black screen background. On the original Droid screen--not sure about this Bionic screen--red was the most efficient color that could be displayed. To save maximum battery, in regards to wallpaper, install app “No Wallpaper”. It will allow you to select No Wallpaper as your wallpaper. The screen background will be totally black.
- Camera app: I like keeping location on and flash on auto. Consider turning location off or at least returning to the home screen ASAP when using camera if location for camera is on.
- In stock browser the default home page is Google and it uses your location. This is a bad idea as it can waste your battery for no reason. Make something else your home page and make sure to close any web page that uses your location when you're done viewing it.
- Charge your phone via the wall charger instead of computer USB as it is faster. Also, don't use long USB cords -- use regular power extension cords instead. I stick with the charger that came with the phone. Put the phone on charger when you go to bed every night.
- Consider installing the Home Replacement app Zeam. It is basic app that uses very few resources and will help with battery power.
- Emails: I don't know what email app you use, but try this. It saves battery power and in some cases emails arrive quicker. This scheme will have you using only the Gmail app on the phone for all email accounts whether they are pop3 accounts or Gmail. Using Gmail as your own personal push mail server
- If you are using Live Wall Papers, stop!
------------------------------------------------------------------------------------------------------------------
This is a link to some very good videos about saving battery power on the Bionic (there are 4 parts and the other parts will show up as available videos when part 1 finishes):
Battery Saving Video
Part 1: http://www.youtube.com/watch?feature=player_embedded&v=cvWg7SbUgsI
If battery life is still bad: Consider doing a factory reset (Galaxy Nexus users beware!! A Factory Reset will wipe your sdcard of everything – backup accordingly): These have gotten pretty painless lately by following these simple steps: 1. Make sure Backup and Restore are checked in the Privacy setting. 2. When going through the setup after the reset, turn on wifi as soon as you can (assuming it is available). 3. After you have entered your Gmail account info, you will be presented with a screen that has two check boxes. Basically they are "Do you want Google to backup and restore this phone”. Make sure you check both of those. Your apps will then automatically reinstall (paid and free). Set the phone aside for a minute or two and let the apps download and install. 4. If rooted, use an app such as titanium backup to restore data only to select apps such as Tapatalk and you will not have to re-enter all your login information. I do this for 3-4 apps (Tapatalk, SPB Shell, etc.).
I've been flashing new roms/updates about once per day lately and I can be up and running with all my apps and settings back in place in less than 15 minutes. It's pretty painless now.

Tasker profile becomes inactive after phone is idle for 10 minutes

Hi all,
I have an AT&T Samsung Note 3 SM-N900A running Android 4.3 (baseband version N900AUCUBMJ5, kernel v3.4.0-1625098). I rooted it using Kingo, installed Tasker (with Secure Settings plugin), and created 2 profiles: one with a 'Home' location context, and one with a 'Work' location context. In the 'Location Edit' map screen for each, I set a pinned location w/ a radius of 200m. I also de-select 'GPS' (leaving only 'NET'), since I don't want GPS enabled all the time (to extend battery life). I confirm that these work when I'm actively using the phone.. the profile becomes active when I'm at the specified location (as expected). I know it's active because it's displayed in the Notification Panel (and it's also shown in green in the Tasker profiles list).
The issue I'm having is that after ~10 minutes of idle time (i.e. when the display is off and I'm not using the phone), I find that the profile is no longer active when I turn the display back on and start using the phone again. I confirmed that this *doesn't* happen after 1 minute, 2 minutes, nor 5 minutes… only > 10. I also confirmed that it happens for both profiles consistently. However, as soon as I start Tasker again from the Apps Drawer (or from Recent Apps screen), the profile is immediately activated again, and my Enter task is re-run.
I enabled the run log in Tasker prefs, but it basically shows a clean activation of the profile (with no warnings or anything that looks weird to me).
I know there's a 10-minute timeout in the Display Off Monitoring prefs, but that doesn't seem to be related to my issue. I tried reducing the All Checks Seconds from 600 to 90, rebooted the phone, and it still took ~10 minutes before the profile would become inactive after the phone being idle.
Any thoughts as to what the culprit might be? Are there any system logs I can look at that might shed some light here? I'm new to Android, and this seemed like the place to ask..
Thanks.
Ok, not solved..
Alright, bumping this, as the problem is back again after some time.
Has anyone ever seen Tasker exhibit the behavior I described? Again, I start the phone and Tasker profile is active, let the phone go idle for >10 minutes, the profile is no longer active and I need to restart Tasker manually to make it active again.
Still trying to figure out what logs are best to look at..

WORKAROUND of no-push-notification in deep sleep

I'VE FOUND A WORKAROUND of this no-push-notif during deep sleep problem.
Earlier, I tried holding partial wakelock so the device never sleep, this of course works alright, but drains battery very rapidly (5% / 30mins).
This is NOT ACCEPTABLE.
So, I tried something else :
automatically waking up the device regularly every 30mins, with the help of Tasker (which doesn't turn on the screen at all).
The result is :
7 hours after screen off and a good night sleep, in the morning I sent myself a BBMsg and it arrived perfectly in about 5 secs.
Battery consumption is totally acceptable : only 4% drop during 7 hours (dual sim ON, data ON).
That's days ago, and still works perfectly until now, I'm happy with it, so I'd like to share the AWESOMENESS.
I'm not sure about push notif from Google servers via GCM, I don't use any app which takes advantage of GCM, I only use BBM which uses its own servers.
In this case, you should first try adjusting heartbeat interval using PushNotificationFixer (which can't help me since it only resends heartbeat to Google server).
Tasker setup :
1. create new profile : Time
* uncheck both start & end time (so it starts and ends from midnight to midnight)
* check Repeat : every 6 minutes (during deep sleep, this 6 mins expands 5x to 30 mins)
2. add new task :
what you do in this task doesn't really matter, the point is to do something in a regular interval (I only use Alert Morse, so I know that the profile is still running)
GODSPEED !!!!
PS. :
if you're not familiar with Tasker, after installation you have to :
1. allow it as admin (system Settings > Device Administrators)
2. turn on its service (system Settings > Accessibility)
3. put it on auto-start list

Android (various versions) – Delayed push notifications on mobile data

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

Random Ads & Strange Behavior

Hey Guys -
I recently upgraded to a Galaxy S9+ and overall love it despite not being able to root. For the past couple of weeks, I've had a three very annoying issues though. I've tried many things to resolve, but so far can't figure out solutions. Below are thr issues and what I've tried to fix each. Any suggestions would be appreciated!
1. Random ads open in default browser (Firefox) no matter what I'm doing / what app I'm in
It doesn't matter what app I'm in, every 5 min or so Firefox opens on top of whatever I'm currently using without warning and displays an ad in a webpage. I use the Ublock tool in Firefox so sometimes it opens to a blocked webpage
What I've tried to fix:
- Closed all tabs, cleared history / personal data, then force quit Firefox
- Restarted phone
- Tried many malware apps like Malwarebytes but scans come in clean
- Uninstalled apps not installed from Google Play (only a couple)
- Put all apps not needed to run in background asleep
- Disabled notifications for apps I don't need
2. Display configs randomly apply
I have my screen set to turn off after 2 minutes and also have "always on display" enabled during the daytime which is different than simply leaving display on. Currently, though; after 2 min the screen just dims - that's it. If I hit a button to turn screen off it works, but if I place it on charger after doing this, the lock screen appears and it just Dom's after 2 minutes too. Basically, always on display only works after I press a button to power display off
What I've tried to fix:
- Verifying settings we're correct
- Setting configs differently then reverting them
- Disabled all MacroDroid / AutoMagic scripts
- Installed Greenify to put apps to sleep thinking one may be keeping device awake
3. Secure Startup Reverts
My work uses InTune and requires strict policies and settings in order for sync to work - one of these is Secure Startup where you must enter your passcode after reboot. Every couple of days or after a reboot, this setting Reverts from being enabled to disabled this making my phone daily compliance and stopping sync of work stuff. I must manually reenable it, then jump through hoops to get it compliant again. This has been an issue since I got the phone.
Any suggestions for any of the above?
Thanks!!
You could have a malware in your phone. When I had my note 8 I experienced something similar with the ads, it was very annoying. Long story short... I had to do a factory reset
I agree with TonyGzl92. It is probably Malware.
If the problem persist and you have deleted all installed apps and still get the problem you will ned to perform a factory reset and watch the phone after every app you install.
I had the issue with the screen just dimming instead of going completely off, and it was a conflict with an app I had installed. Pretty sure it was a Play Store app, but it's been long enough I no longer remember what app it was.

Categories

Resources