Push notifications while phone is sleeping - are these commonly disabled by default in custom roms as a battery saving feature? I've tried Embryo 5.1, Majick-Wizz R3, and CM10 Alpha (all using the recommended kernels/radios, flashing using CWM Touch 6.0.1.2 v12.5), all seem to have the same "issue" where I don't get push notifications from things like Gmail or third party apps while the phone is sleeping. As soon as I wake the phone, the notifications come in.
I couldn't really find anyone on this forum or anywhere else on this issue, except for cases with the HTC Evo, which leads me to believe it's common knowledge whatever is causing this or how to fix it, but I'm new here and this is escaping me completely...
Thanks for any help!
I get push notifications for my email account all the time, and when I've tested other apps (Facebook, Twitter, news apps, etc.) they've always worked there as well. This is on several ROMs, including MW (all three releases), SkyICS 4.2F6 and CM9.
Are you restoring system data from Tibu, by chance? That's all I can think of from a practical perspective that would carry the problem across ROMs, but I'm not a dev and can't begin to guess at any potentially more difficult solutions.
I actually don't restore any data from anywhere except Google auto settings backup. These are all fresh installs.
Edit to add: the notifications seem to work until the screen has been off for 10+ minutes. Also they worked on stock rom.
Edit2: Looks like it may have to do with the WiFi. Made sure the WiFi policy was set to remain connected while sleeping, but that setting doesn't appear to be working. Disabled WiFi and let phone sleep for 10 mins and sent emails to test, and notifications worked.
Edit3: Tried disabling/enabling the WiFi sleep settings in various ways to see if a setting was stuck somewhere, to no avail... Flashed InstigatorX 6.3.4, no dice. It's definitely the WiFi going to sleep though. Confirmed that if WiFi is turned off, all works well. Also, upon waking the phone, it takes a few seconds for network connectivity to start working again (if WiFi is enabled). How do I get this setting to stick?!
Update: Ok, so I just reflashed with all of the Google backup stuff turned off, and tested, still not working.
I'm really running out of ideas here. It's not that I'm unwilling to try something, I just literally can't think of anything else to try...
EDIT: So I just downloaded an app for which the purpose is to keep WiFi awake at all times, and it happens that the app also checks your WiFi sleep policy setting for you. In my case, it told me that i had WiFi set to disable when the phone is sleeping (despite that not being the case). I suppose this fully confirms that the issue is the setting isn't sticking. I let the app change that setting for me then uninstalled the app, going to test throughout the day tomorrow. In the meantime, is there a relatively harmless way to manually check whatever configuration file holds this policy setting?
So I'm on Liquid pre-RC based on Cm10 now and it seems to be working intermittently. The only way I can get it working consistently so far is installing an app built for this purpose. Am I really the only one experiencing this issue with custom roms?
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
I don't really have an answer for you, but I can at least tell you that you're not crazy. I have definitely noticed this happen where I will wake up my phone and instantly be hit with email notifications. However, it didn't happen every time like that. And to be honest, I think my push Gmail worked fine; it was my pull email that would do it to me. That was on CM9. I don't think I've noticed it happen since I've been on MW.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Related
I didn't think this would be a development thread so i'm starting it here. This is just some of the random issues I'm having.. and was wondering if anyone else was having these or any other issues.
The unknown notification on lockscreen is apparently for other people too.. and i've noticed it's dealing with the stock messaging app. Has anyone figured out how to turn off the counter on the stock launcher for the stock messaging app if you're using a different app like Handcent?
Random lockups. My phone will not come out of sleep.. or i won't be able to unlock it. nothing will be on the screen and i have to pull the battery in order to do anything.
random FC of an app.. or just not even notified of the FC just get this vibrate then double vibrate and everything crashes back to the home screen. First did it when i started setting up the device. and done it a few times since. I've also had one time that was continuous of "vibrate...double vibrate" over and over and over and over.. you get the picture.. and i had to pull the battery.
Is anyone else having these issues or anything similar? Or should I run back to the store and exchange this sucker?
syph0r said:
I didn't think this would be a development thread so i'm starting it here. This is just some of the random issues I'm having.. and was wondering if anyone else was having these or any other issues.
The unknown notification on lockscreen is apparently for other people too.. and i've noticed it's dealing with the stock messaging app. Has anyone figured out how to turn off the counter on the stock launcher for the stock messaging app if you're using a different app like Handcent?
Random lockups. My phone will not come out of sleep.. or i won't be able to unlock it. nothing will be on the screen and i have to pull the battery in order to do anything.
random FC of an app.. or just not even notified of the FC just get this vibrate then double vibrate and everything crashes back to the home screen. First did it when i started setting up the device. and done it a few times since. I've also had one time that was continuous of "vibrate...double vibrate" over and over and over and over.. you get the picture.. and i had to pull the battery.
Is anyone else having these issues or anything similar? Or should I run back to the store and exchange this sucker?
Click to expand...
Click to collapse
No problems here at the moment, had it about a week and havent seen any of the problems you are mentioning. But this is just for me.
I get this hard crash (vibrate... double vibrate... soft reboot) at random times. It seems to be when I'm running several apps at once. For example, driving to work,I use (Google) Navigation and Doggcatcher for playing podcasts, while GPS and Bluetooth are both enabled.
These apps have been rock solid for me with the 5 other Android phones I've had. Besides, the crashes happen with other combinations of apps. Come to think of it, audio playback is usually (always?) involved, be it with Xiia or the stupid built-in music app.
syph0r said:
random FC of an app.. or just not even notified of the FC just get this vibrate then double vibrate and everything crashes back to the home screen. First did it when i started setting up the device. and done it a few times since. I've also had one time that was continuous of "vibrate...double vibrate" over and over and over and over.. you get the picture.. and i had to pull the battery.
Click to expand...
Click to collapse
Randy Power said:
I get this hard crash (vibrate... double vibrate... soft reboot) at random times. It seems to be when I'm running several apps at once. For example, driving to work,I use (Google) Navigation and Doggcatcher for playing podcasts, while GPS and Bluetooth are both enabled.
These apps have been rock solid for me with the 5 other Android phones I've had. Besides, the crashes happen with other combinations of apps. Come to think of it, audio playback is usually (always?) involved, be it with Xiia or the stupid built-in music app.
Click to expand...
Click to collapse
that's what i've been noticing. but sometimes i'm not even running many apps. i haven't put much on the phone since i've been having these issues, but these apps work perfectly even on my G1. i think i'm just having odd issues with my phone pretty sure its getting exchanged on monday.
I hav the odd vibrating too...Not sure if I should return the phone or not.
Sent From SK4G
i think the "odd vibrating" where its a single vibration.. then 2 quick vibrations.. is a sign of an FC.. not 100% sure.. but thats what i see going on when it happens to me. I've also noticed when i'm outside and thinks i'm selecting things or moving the trackball thing. always to the right.. i think my phone is faulty..
syph0r said:
i think the "odd vibrating" where its a single vibration.. then 2 quick vibrations.. is a sign of an FC.. not 100% sure.. but thats what i see going on when it happens to me. I've also noticed when i'm outside and thinks i'm selecting things or moving the trackball thing. always to the right.. i think my phone is faulty..
Click to expand...
Click to collapse
I like that it vibrate to tell you, but other people don't get that?Maybe mines is faulty too?
sent from SK4G
I get the double vibrate and bam, FC's. Usually when im trying to open up and or lots of stuff at once on my phone or using a different launcher "adw" or others and it would happen. Wheres the fix ey.
is anyone having a problem with notifications? i use GoSms, and it doesn't seem to sound the ringtone i have selected, the message just comes in silently..... and same with Beejive IM, and i think K9 mail. all these things worked perfectly on my EPIC 4G.
i was using handcent.. and it was working fine.. minus the unlock screen unknown notification. but everything else has been making sounds just fine.
syph0r said:
i was using handcent.. and it was working fine.. minus the unlock screen unknown notification. but everything else has been making sounds just fine.
Click to expand...
Click to collapse
Dang ok, well I may have to unroot mine if possible, and take it back, haha. So I'll be watching for a response to your question in the other thread.
Edit: I fixed my notifications..... somehow my notification volume had been turned all the way down, so I wasn't getting any sounds for texts, emails, etc. Not sure how it got turned down, but sometimes I guess settings can get jarred by various things we do to our phones.
I, personally, loved the MIUI & CyanogenMod but they, in my opinion, have their downfalls.
MIUI: No app drawer, I like having just 1 page on the homescreen & all the excess apps/games in the drawer, but its layout (customization options (lockscreen/homescreen wallpaper, themed messaging app), bootlogo, etc.) is great but, the worst part was the simple fact that it would be fine over night, then the next day it started booting out the wifi, phone or even put my phone into airplane mode which I could not get out of no matter how many reboots or battery pulls I did.
CyanogenMod: No texting or phone calls at all, it has been awhile since I used it but it either could send & not receive texts/calls or vice-versa, either way just like w/ MIUI, its awesome in every other aspect.
I was just wondering if there are any other custom ROMs for the Samsung Mesmerize SCH-i500, in particular, that are similar to those two, themed and/or fully customizable options, I can't think of the words I'm looking for, I guess a standalone custom ROM that is FULLY STABLE (calls, texts, wifi, bluetooth, no AUTOMATIC airplane mode, etc. I mean EVERYTHING FULLY WORKING) for my, above mentioned, phone, does not have to be debloated/dexed/deodexed, either way.
i am running miui 1.12.9 with glitch kernel v13.1 EH09 radio
for what i use it all works. sms, bt, mms (wifi off), phone, alarm clock, etc..
miui control panel for the app drawer feature. maybe if you had an older version you might want to check out this newer one.
but as for other roms i have not tried any, if i get bored i might try something else but not until i read up on it so i know what im getting into.
combatarms said:
i am running miui 1.12.9 with glitch kernel v13.1 EH09 radio
for what i use it all works. sms, bt, mms (wifi off), phone, alarm clock, etc..
miui control panel for the app drawer feature. maybe if you had an older version you might want to check out this newer one.
but as for other roms i have not tried any, if i get bored i might try something else but not until i read up on it so i know what im getting into.
Click to expand...
Click to collapse
I was using MIUI.us_mesmerizemtd_1.12.9_Eng_Deo_ZipA_Signed_dfgas-911fix and it was about 2:30 in the morning when I finally fully restored to stock rooted 2.3.4 Gingerbread, wiped data, cache partition dalvik cache and finally rebooted after installing MIUI, I finally went to sleep at 5 in the morning after setting it all up.
I awoke at about noon & it was still running fine but I ran busybox installer so I could update the su binary & had to reboot, this was roughly between 3 - 3:30 in the afternoon &, after reboot, it just started f***ing up.
Absolutely no phone signal at all, I tried the phone activation code but it was never activated, wifi, even right next to the router, was not detected, tried a few reboots but nothing, it kept saying it was in airplane mode, when I opened the notification bar, deactivated airplane mode, it never turned back on again but only in the notification bar, in the settings menu, after turning it off & exiting the menu or going to another menu, regardless if it was from within the settings menu or not it automatically switched back on when I returned back to it, I don't know, if I can get it to work, I can live without the app drawer, its just that good to me.
I even tried the MIUI360P_ENHv3.1_universal_s enhancer thing but that just mad it so that, I forgot exactly what it was called, something about com.android.phone. (something) process kept having to be force closed but every time I pressed force close within 2 or 3 seconds it did it again & it kept repeating this over & over again, I had to pull the battery just to get out of it, but by what I saw in the forums after I tried it, its actually meant for Samsung Galaxy S II I9000, whereas I have the Samsung Galaxy S I i500, I kind of rushed into it in the hopes that it would fix the issues.
Seems to be somewhat common but no fix to be found...
Using CM7.1
Was working perfectly for a month.
Seemed to happen out of no where, no new apps installed or settings changed. The phone will vibrate for incoming calls, haptic, everything except SMS.
Using GoSMS but it does the same with the stock messanging app. Vibration is turned on in all the system and messanging settings. In fact, when I test settings in GoSMS it reports "vibration on".
Tried clearing the dalvik cache and tried installing this app but it won't show anywhere in the app drawer and I can't find it anywhere on the phone despite the market saying its installed. Unfortunate becasue it seems this app was designed for this very issue with desire/insprire.
Anyone have a fix for this or a method I could get the above app to install properly?
Thanks.
edit.....It's looking like an app issue......
never mind on the rom repair part....sorry
mods can delete....g
Gregsarg was actually probably right the first time. It doesn't seem to be an APP issue (as all MMS apps have the same lack of vibrate), but a broader issue.
His suggestion to install CM7 on top of itself is likely the simplest attempt at solution since you haven't found a specific solution through your searches.
I also tried the GoodVibrations.apk and it only shows in airdroid, mybackup, and managing all apps... It doesn't even have the 'open' command on the market menu after installing it >.>
Wulamoc said:
His suggestion to install CM7 on top of itself is likely the simplest attempt at solution since you haven't found a specific solution through your searches.
Click to expand...
Click to collapse
Thanks. Unfortunately I didn't see this suggestion before it was edited out. What exactly is meant by install CM7 on top of itself? Through clockwork I presume?
Yeah, just flash the SAME rom again (after backing up AND without wiping anything), and your settings should stay in place.
There is also a setting in the stock CM sms app that controls vibration, which is turned off by default.
Yeah vibrate in the stock SMS program is on. While I haven't gotten around to reflashing just yet I have noticed a few other things that lead me to believe its a ROM issue. Sometimes when I put the phone on silent it turns off all system vibrations even after coming off silent. I have to go back in and turn vibration back on. This is intermittent. Also, out of the blue the phone started vibrating during calls, come to find out "vibrate every 45 seconds during outgoing calls" was magically turned on.
It WILL vibrate when an SMS arrives if I'm on a call. Swell.
Flashed the new 7.2 nightly and the problem still exists. Everything remained intact after the flash so I figure I'll just do a full wipe/factory reset and flash the new nightly again and start over. Hopefully whatever caused this won't carry over with titanium restoring apps.
Do the full wipe, install the rom... then get a friend to send you text messages BEFORE you restore from Titanium, and then after....
Easy to isolate if you're carrying the issue from ROM to ROM.
Had the same issue, could find no fix. Used vibrate tools from the market and no issues for a week or so now..
*signed
mrrick said:
Had the same issue, could find no fix. Used vibrate tools from the market and no issues for a week or so now
Click to expand...
Click to collapse
That did it thanks! Saved me from having to do a full wipe. Phone is back to vibrating with SMS and I can change the vibration pattern. Nice.
Cool, glad it worked for you. I really wish I knew what happened though, it's kind of bugging me.
Meh, technology..
*signed
Well I'll add this... Out of curiosity I removed the vibrate tools app and everything is still operating as designed. So whatever that app turned on has stuck.
Installed Beans 8 recently and Ive been having my phone be awake at precise intervals overnight. it seems like every 15 minutes. Ive checked my settings and cant find anything that I wouldve done to cause it. Ive neverhad this issue. btw, im running KT747 kernel
aynway, I bought and installed betterbattrystats after searching for help. Im at a loss at the moment. The readings are a little too advanced for me. I dont know the difference between a good wake up and a bad one. Are there common causes for this?
Is there a better way to narrow this down? I deleted the apps I dont use hoping that one was rogue and doing this, but I dont think thats it. The only thing I could think of off the top of my head was that I recently upgraded to nova prime and i am using the unread counter that Nova uses. could that be scanning for notifications constantly?
Any help appreciated. I love this ROM. its by far my favorite taht ive flashed so far, i dont want to flash somethign else. Im sure its something I did.
thanks in advance. If its neccesary ill post up my Betterbatterystats tomorrow after I run through a charge cycle during the day tomorrow.
bumping this up for screen shots. I put this down before i went to bed, and checked when i woke up. I set an alarm before going to sleep, thats all i did. i think my phone being awake has to do with the maps app. how can i control this? ive never had this happen before?
GPS has been off and googles location service is all that I keep on. it looks like its updating at regular intervals. is this google now? Its not a huge drain, but its enough that ive noticed it. any help appreciated.
in the meantime, i cleared data/cache, uninstalled and reinstalled maps.
That looks pretty normal. You may want to post the better battery stats info, it may help. Also for location waking your phone up, open maps, go to settings, location settings and disable report location from this device.
Sent from my VS920 4G using xda app-developers app
I am too lazy to type everything. Download gscript from the play store and create a script that mirrors the picture. Save and run it. Once it completes there will be a txt file on /sdcard so open it up and sift through the entries till you find a line that says Alarm Stats. After that line just see if any entries have a large number beside alarms
Sent from my SCH-I535 using xda app-developers app
Not sure if anyone can help, or if it's been covered before but I'm a new oneplus 6 user and have scoured these forums, oneplus, reddit etc and cannot find a working solution to my problem.
I currently have no real issues receiving push notifications on wifi, however mobile data is different. Once the screen has been locked for a small period of time I stop receiving push notifications. When I wake the phone some will show up, some won't show until the relevant app is opened.
Advanced battery optimisation is off.
Individual apps I want notifications from all have battery optimisation set to "Do not optimise".
I have cleared the phone cache through recovery mode.
All notification settings for the apps are on, background data on etc.
There is no option for doze mode in developer mode to turn off.
I have a Tesco Mobile and a 3 sim card. The issue seems worse with the Tesco mobile sim card. The 3 one seems to work better but slowly reverts to the same issue the Tesco one has. I've tried other people's tesco sim cards and replaced my own but none have worked.
Any help would be appreciated, it's driving me mad.
Just to make sure, under Advanced optimization settings there are two switches which are "Advanced Optimization" and "Sleep standby optimization", keeping the latter off might be the problem. Though if they're both off, I assume that it's just the native Doze working to save battery
Allen Hu said:
Just to make sure, under Advanced optimization settings there are two switches which are "Advanced Optimization" and "Sleep standby optimization", keeping the latter off might be the problem. Though if they're both off, I assume that it's just the native Doze working to save battery
Click to expand...
Click to collapse
Yes both are turned off. Do you know of anyway to turn off this "native doze". As a football (soccer) fan, I want instant score notifications for games, I used to get these fine on my iphone 6 but now I have to wake my phone all the time to get them to come up, even then sometimes they don't come through for another 15-20mins.
Have you tried settings in Wifi preferences?
xdadel said:
Have you tried settings in Wifi preferences?
Click to expand...
Click to collapse
I've looked in there but can't see anything that would affect mobile data. The notifications work ok when on wi-fi. I've checked mobile data settings and there are no settings for the apps in question which would restrict data usage.
toddenham said:
Yes both are turned off. Do you know of anyway to turn off this "native doze". As a football (soccer) fan, I want instant score notifications for games, I used to get these fine on my iphone 6 but now I have to wake my phone all the time to get them to come up, even then sometimes they don't come through for another 15-20mins.
Click to expand...
Click to collapse
Is this happening to all apps (ex. social apps like twitter or whatever) or just the football app? If it's the latter it should be a problem with that specific app. While if it's the former case, It should be something system-wide, so I'd recommend doing a factory reset maybe?
Btw my phone performs the same as yours with the "sleep standby optimization" on, while it operates as normal with it off, so your case seems pretty hilarious :/
I've experienced on all apps, it's most noticeable on the football one as you can time the push notifications exactly so can tell when they're late but WhatsApp, facebook messenger etc both the same. It seems as if the device just goes into a form of heavy sleep mode after around 5mins of lock. I've tried a factory reset already and nothing changed. OP have advised me to try and reinstall the OS but I don't hold any hope. It's almost as if the phone cuts off all mobile data after 5mins of downtime.
toddenham said:
I've experienced on all apps, it's most noticeable on the football one as you can time the push notifications exactly so can tell when they're late but WhatsApp, facebook messenger etc both the same. It seems as if the device just goes into a form of heavy sleep mode after around 5mins of lock. I've tried a factory reset already and nothing changed. OP have advised me to try and reinstall the OS but I don't hold any hope. It's almost as if the phone cuts off all mobile data after 5mins of downtime.
Click to expand...
Click to collapse
If factory resetting doesn't solve the problem then reflashing the system likely wouldn't either I suppose.
I still have two options in mind that you may be able to try.
First option is to use apps like "Doze" or "Naptime" both on play store, and mess with those advanced Doze settings to try to disable the function itself and see if it works.
The other would be to try the new HydrogenOS P beta or other custom Roms such as Havoc and see if they don't have this problem.
If neither of these work, I really have no other ideas
But I think these are worth giving a try though
Allen Hu said:
If factory resetting doesn't solve the problem then reflashing the system likely wouldn't either I suppose.
I still have two options in mind that you may be able to try.
First option is to use apps like "Doze" or "Naptime" both on play store, and mess with those advanced Doze settings to try to disable the function itself and see if it works.
The other would be to try the new HydrogenOS P beta or other custom Roms such as Havoc and see if they don't have this problem.
If neither of these work, I really have no other ideas
But I think these are worth giving a try though
Click to expand...
Click to collapse
I tried the Naptime app but that required root and doze didn't seem to do anything.
I've now tried Android P beta. Exactly the same issue. Once the phone has been locked for a few minutes all updates stop. Once I unlock the phone I get flooded with notifications. So frustrated.
toddenham said:
Not sure if anyone can help, or if it's been covered before but I'm a new oneplus 6 user and have scoured these forums, oneplus, reddit etc and cannot find a working solution to my problem.
I currently have no real issues receiving push notifications on wifi, however mobile data is different. Once the screen has been locked for a small period of time I stop receiving push notifications. When I wake the phone some will show up, some won't show until the relevant app is opened.
Advanced battery optimisation is off.
Individual apps I want notifications from all have battery optimisation set to "Do not optimise".
I have cleared the phone cache through recovery mode.
All notification settings for the apps are on, background data on etc.
There is no option for doze mode in developer mode to turn off.
I have a Tesco Mobile and a 3 sim card. The issue seems worse with the Tesco mobile sim card. The 3 one seems to work better but slowly reverts to the same issue the Tesco one has. I've tried other people's tesco sim cards and replaced my own but none have worked.
Any help would be appreciated, it's driving me mad.
Click to expand...
Click to collapse
no idea dude sorre
I'm having the same problem
I have similar but different issue with a few apps that I don't use often.
The push notifications only come through the second I put my phone on charge
Sent from my unknown using Tapatalk
Which mobile networks are you on? I found the issue to be resolved when using an o2 SIM card instead of my Tesco mobile one
Edit: Since this I have tried again with an o2 sim card and it didn't resolve the issue. Leads believe it's an issue with my handset.
Since few days, i have the same problem here, i try severall things but no solution at the moment.
I also had notification issues. Then I installed the stock rom of this topichttps://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665 and my notification returned to normal
my notification come onl;y when i turn my screen on -> https://forum.xda-developers.com/oneplus-6/help/notification-android-p-stable-t3849170
I have this issue and I can't understand why more people aren't complaining about it.
Don't suppose your apps are restored from some kind of backup?
EDIT: Okay, people are complaining about it: https://forums.oneplus.com/threads/push-notification-issues.451149/page-121
have this exact same issue on my note 8 with android pie on vodafone network and so far nothing seems to help or fix the same really frustrating.
did you manage to find any solutions so far ?
toddenham said:
Not sure if anyone can help, or if it's been covered before but I'm a new oneplus 6 user and have scoured these forums, oneplus, reddit etc and cannot find a working solution to my problem.
I currently have no real issues receiving push notifications on wifi, however mobile data is different. Once the screen has been locked for a small period of time I stop receiving push notifications. When I wake the phone some will show up, some won't show until the relevant app is opened.
Advanced battery optimisation is off.
Individual apps I want notifications from all have battery optimisation set to "Do not optimise".
I have cleared the phone cache through recovery mode.
All notification settings for the apps are on, background data on etc.
There is no option for doze mode in developer mode to turn off.
I have a Tesco Mobile and a 3 sim card. The issue seems worse with the Tesco mobile sim card. The 3 one seems to work better but slowly reverts to the same issue the Tesco one has. I've tried other people's tesco sim cards and replaced my own but none have worked.
Any help would be appreciated, it's driving me mad.
Click to expand...
Click to collapse