Notifications wonky after Pie update - Xiaomi Mi A1 Questions & Answers

Has anyone else noticed that notifications seem to be super slow in coming after the Pie update? Line and Email can take up to two hours to exhibit a notification. I've looked at the notifications area of the apps, and nothing appears to have changed that I can see, and I can't find anywhere in Pie to tell it to allow more background time for these apps. I've tried force stopping and restarting with no change.
If anyone has any idea on what is going on, and how to fix it, your help would be most appreciated. Being told your wife left you a Line message 2 hours after she did so, or that your kid sent an email 2 hours earlier, is NOT conducive to a happy home life.

Nobody else has this issue? It appears to be connected to the fact that the phone is sitting undisturbed for a long period of time. If I am carrying the phone around with me, the notifications seem to come as expected, but if the phone is just sitting on my desk for a while, they seem to come from minutes to hours later.

You could try to whitelist those apps on Battery Optimization
I'm no expert, but from what you describe sounds like the phone is entering into Doze and notifications cannot come until the next maintenance window
If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms.
Click to expand...
Click to collapse
https://developer.android.com/training/monitoring-device-state/doze-standby
I think white listing the app prevents this behaviour

It does sound like you are correct and the phone is entering Doze mode, delaying the notifications. Thanks for that!
I will check into how to add the email and Line app to a whitelist for Doze. Hopefully it's a simple task, but I don't see anything under Battery doing a quick scan.

Just a follow up. After much searching and reading, I finally found where to turn off battery optimization for the two apps I needed notifications from. FYI:
Most things on the web say to go to Settings->Battery, then hit the three dot menu and select Battery Optimization. This does not appear on my phone. (see screenshot) To get to the list of optimized apps, you need to Search->Battery Optimization, select Battery Optimization from the results (it will take a few seconds to load), then tap Not Optimized and select All Apps. Find the app you want, tap it, then select Don't Optimize. You can also go to Apps and Notifications->Advanced->Special app access->battery optimization.
Whether this will actually fix the problem is another question entirely as most posts say that Doze continues to work. I guess we shall see.
I hope this saves someone the aggravation of trying to find something directly relating to Pie. Most things out there are for older builds.
Also, I turned off Adaptive Battery to see what the actual difference is in my light usage use case. If you are interested in the results of this test, let me know and I will post here.

Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.

Tepig said:
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Click to expand...
Click to collapse
Unlike some folks, I am not tied to my phone. It often sits on the desk undisturbed for 3 or 4 hours during the day unless a notification comes in and I pick it up to look at it. Most of my screen time is on my computer, so the phone is the external brain when out and about, but not used much otherwise. At night, I turn on airplane mode until I get up the next day, then turn it off. I'm a retired software engineer, so have no real need for constant communication anymore, and I like it that way.

Related

battery life suddenly gone awry

hi all,
I've installed a raft of apps in the last few days (perhaps that was foolish) on my sim-free white Hero, and suddently the battery life has gone to pieces. It now won't even last the night *in standby with wifi off*.
Any ideas as to the known battery killers, or any way I can track down which is causing this? I don't really have to want to start removing apps at random and monitoring.
There's nothing particularly unusual in my list of running apps, following a power cycle (is there?):
Shake Awake, NetCounter, AK Notepad, OI Update & Countdown, Tube Status, Battery Widget, BBC News widget, Peep
(although that does raise a separate question: why do things like ShopSavvy, AK Notepad, start at boot, when presumably they're not really doing anything until you use them?)
Of course, I have other things that get started asynchronously, just not at boot, e.g. SMS Popup.
anyone got any ideas, please?
thanks much indeed.
cdmackay said:
hi all,
I've installed a raft of apps in the last few days (perhaps that was foolish) on my sim-free white Hero, and suddently the battery life has gone to pieces. It now won't even last the night *in standby with wifi off*.
Any ideas as to the known battery killers, or any way I can track down which is causing this? I don't really have to want to start removing apps at random and monitoring.
There's nothing particularly unusual in my list of running apps, following a power cycle (is there?):
Shake Awake, NetCounter, AK Notepad, OI Update & Countdown, Tube Status, Battery Widget, BBC News widget, Peep
(although that does raise a separate question: why do things like ShopSavvy, AK Notepad, start at boot, when presumably they're not really doing anything until you use them?)
Of course, I have other things that get started asynchronously, just not at boot, e.g. SMS Popup.
anyone got any ideas, please?
thanks much indeed.
Click to expand...
Click to collapse
I had the same issue when i put on battery widget, I saw the % going down while watching the phone.
oh! that's ironic
I do get the impression that it's more recent than that, but it could well be, I suppose. I'll remove it and see... thanks.
I've heard that the bbc widget drains the battery.
This is something Google should address with android market. The system should apply various forms of stress testing to all applications and rate them according to connectivity requirements, CPU load, power consumption etc.
I think for people who have a serious drain they need to hard reset and start again, put 1 program on at a time and leave it a day or so with that program on, finding out whats causing the drain.
Logically thinking, i'd expect it to be a program that is using internet in the background, like the bbc widget which could still be downloading without you knowing.
good points, ta.
I already noticed this. I checked the CPU load in idle mode and normally it should be around 10% (using "System Monitor").
Sometimes however, depending on what apps were running, it is increased to 30-40% and staying there constantly.
Closing all apps (incl. Sense) does not help either, the CPU load won't go down again until i make a complete device reset.
So i guess some processes are stuck in thise case causing the high load (and draining the battery empty).
My GPS did not disconnect, after foto geo-tagging, and that goes quick as well.
Also the BBC-app was installed, but got rid of it because I didn't use it. Might be a coincidence.
The BBC app polls really often. There's no setting to tell it how often to poll. It really kills the battery fast
I wonder though: even when the phone is in standby? something is killing me in standby. Oddly, it seems better if the phone is on
I'll try removing the BBC app overnight, and see...
then the battery widget tomorrow, etc...
cdmackay said:
I wonder though: even when the phone is in standby? something is killing me in standby. Oddly, it seems better if the phone is on
I'll try removing the BBC app overnight, and see...
then the battery widget tomorrow, etc...
Click to expand...
Click to collapse
Turn on usb debugging... download the SDK.. cd into tools.. and run
adb logcat
or to send it to a file:
adb logcat > log.txt
(and ctrl + C to stop logging)
Inspect the log file and you'll see what its upto pretty quickly. Maybe its overkill, but I fire that up when it starts behaving strangly.
EDIT: err to answer your question.. yeah the widgets wake the phone up to grab new data, which eats battery. The BBC news one seems to be polling reallllly often, which is unecesarily using power.
quick update: removed BBC News and Battery Widget (separately), no change; phone still dies overnight, in fact in about 5 hours on standby, from a full battery, to totally dead.
I just this minute discovered that my phone whilst in standby is still polling my IMAP server to try and connect, and I have a huge inbox, which it was prob failing to get the headers for. Seems like a possible bug that it still does this whilst in standby, but I've disabled that account anyway. It might be the cause...
What do you mean by Standby? Just inactive? Airplane Mode?
sorry, poor terminology, perhaps. No, not airplane mode, just the screen-off state it goes into after a few minutes.
It does seem a little bit of a waste, if the phone is going to spend all night checking for new Twitter, Gmail, etc, updates, when I'm not awake to read them? So I'd naively assumed that perhaps it wouldn't do that when it's in the screen-off state. Unless you've asked for notification other than on the top bar, of course?
cdmackay said:
It does seem a little bit of a waste, if the phone is going to spend all night checking for new Twitter, Gmail, etc, updates, when I'm not awake to read them?
Click to expand...
Click to collapse
To be fair, the phone doesn't know when you're going to asleep now does it? (especially if you're a night worker).
I notice that there's an application in the market now which can automatically turn airplane mode on according to a schedule, so that may help but of course this does mean you won't get phone calls!
Regards,
Dave
foxmeister said:
To be fair, the phone doesn't know when you're going to asleep now does it? (especially if you're a night worker).
I notice that there's an application in the market now which can automatically turn airplane mode on according to a schedule, so that may help but of course this does mean you won't get phone calls!
Regards,
Dave
Click to expand...
Click to collapse
No it doesn't but I'm developing a widget which will disable data access at certain times (dependent on user) so overnight it wont use data and save battery.
foxmeister said:
To be fair, the phone doesn't know when you're going to asleep now does it? (especially if you're a night worker).
Click to expand...
Click to collapse
Right; I really meant the following, but worded it wrongly...
I had expected apps not to do data access when the phone's screen is off, unless they have been configured to notify via sound, vibrate or light.
i.e. if an app either isn't notifying, or is only notifying via the top bar, then it should disable its data access when the screen is off.
That would mean a short delay in getting updates, when the screen is back on, but I'd rather have that than spending much battery time pointless checking for updates when I'm not going to see them for ages, whether that's at night or just when the phone is sitting on the desk for hours.
nicelad_uk said:
No it doesn't but I'm developing a widget which will disable data access at certain times (dependent on user) so overnight it wont use data and save battery.
Click to expand...
Click to collapse
aha! that sounds great, thanks in advance
would you update us here when you have something testable, please?
and if it's not pushing my luck to ask: any chance that it might also have a manual switch too, for those of us who go to bed at wildly different times?
Or perhaps there is already a way to disable data access manually, with a single setting change, without disabling the phone? I think there might be...
ah yes indeed, there's even an HTC widget to disable mobile networking, whilst leaving phone enabled. That will do for now

Something on the Xoom is grabbing a wake lock and not letting it go

Using the new battery usage info in Honeycomb/gingerbread, I can see that there is an app periodically waking the device in pretty frequent intervals.
The only third party apps I have installed on the Xoom I also have on my phone and consider them safe.
Can you guys look at your battery usage? In particular look for times your device is awake but the screen is off. Thanks.
Install spare parts from the markpet. Under battery use there is a wakelock category and you should be able to find the offending application.
At this point, my battery life's so darn good I'm not worried if something is exhibiting this behavior. Seriously, though, I'll take a look as well and see if I can find anything going on.
Think I found it.
I turned off the "backup my data" feature in the privacy settings area. Since I've done that the device now sleeps without interruption.
Before, it was waking up what appeared to be every 5-10 minutes or so. It also, at times, completely and totally wakelocked the device.
It may be too early to claim victory here as its only been a few hours but I'm pretty confident that was the issue.
EDIT: nevermind, still seems to be waking up. Argh.
Inphinitizeit said:
Install spare parts from the markpet. Under battery use there is a wakelock category and you should be able to find the offending application.
Click to expand...
Click to collapse
Crashes for me in Honeycomb.

We need a stickied battery improvement thread

I am happy to make one.
Sent from my SPH-D700 using XDA App
My battery tips
1. Latitude : If you are logged in, it will update your location every few minutes. This will make a phone that should be on a very low power state, re-enable lots of things that suck power. (5hrs)
2. Home screen weather clocks : Just change the update interval to something more like every 3 hours and it won't kill your battery as quick. Make sure you don't have it use GPS for location. If you don't mind, set the location to be static. (1hr)
3. Chat programs that don't rely on push. If the program needs to keep your data connection alive, it will kill your battery.(1-5hrs)
4. Anything that will update automatically. The craigslist app for example will poll the site for changes, waking the connection and the processor each time.(1-5hrs)
5. Bluetooth. : I know it isn't an app, but if you aren't using it, don't have it on. It takes enough power to eat a few hours of battery life. Pretty major. (3hrs)
6. Leave 4G on. : This might not work for everyone, but when 4G is asleep, it doesn't seem to suck juice the same way 3G does. My EVO dies quick on 4G, my Epic battery lasts longer on 4G. (as long as you are in a 4G area). (3hrs)
Disable these things and you should get battery life that you hear others bragging about.
"Latitude" on my phone and others I've seen, does not update that often and really only constantly updates is when you have maps open. My wife and I both run latitude and have not noticed anymore of a battery drain than not running it.
sdrawkcab25 said:
"Latitude" on my phone and others I've seen, does not update that often and really only constantly updates is when you have maps open. My wife and I both run latitude and have not noticed anymore of a battery drain than not running it.
Click to expand...
Click to collapse
Mine updates every few minutes on WM and Android. Turn on your history and you will see it updates hundreds of times a day. After my froyo update, I couldn't make it through the day. You might have location set to wifi or wireless, I probably should do that too, but I'd rather keep it active.
I subscribed to it.
http://forum.xda-developers.com/showthread.php?t=884684
i thought the whole idea of push was that it doesn't use data cause its a server side push instead of the phone polling at a set schedule
roghaj said:
Mine updates every few minutes on WM and Android. Turn on your history and you will see it updates hundreds of times a day. After my froyo update, I couldn't make it through the day. You might have location set to wifi or wireless, I probably should do that too, but I'd rather keep it active.
Click to expand...
Click to collapse
Weird, I have history on and the setting to update automatically, and still only updates only once every few hours on it's own. Maybe mine is "broken", but glad it is then. I'm on an htc Incredible.
If you are getting excessive drain while on wifi, check for unusual traffic on your network as the problem is probably not your phone and something else polling your device keeping it awake.
http://forum.xda-developers.com/showthread.php?t=1087278
For me, the problem was HP's wireless printer software on one of my laptops.
I'm wondering if one of these 2 is a big sleep preventer:
1. "Background Data" (I used to think all you had to do was disable "Auto Sync" but when I uncheck "Background Data" I get a popup saying something about how I will save battery power if I agree to disable)
2. "Use Wireless Networks" (even if GPS is off).
I usually have been getting good results after unchecking a combo or both of these and sometimes I even have to reboot to get back to normal Epic sleep.

Need to restart every few days or phone wont enter deep sleep?

Like the title says, my phone stops going into deep sleep about 3 days after a reboot. I need to reboot the phone for it to go to deep sleep again. Would anyone know what might be causing this?
Japultra said:
Like the title says, my phone stops going into deep sleep about 3 days after a reboot. I need to reboot the phone for it to go to deep sleep again. Would anyone know what might be causing this?
Click to expand...
Click to collapse
In my opinion, that's not a bad thing. It's better to restart any device with an OS on it at least once a day or two maximum.
A computer device that stays on for days is similar to a human not getting sleep. Things slow down and become fragmented. VRAM, Page File, etc start getting cluttered.
I'm not surprised your phone won't enter deep sleep after three days of being on. After that much use, you'd have used various apps and services causing wakelocks.
That's what I experience, at least.
FiddleGoose said:
In my opinion, that's not a bad thing. It's better to restart any device with an OS on it at least once a day or two maximum.
A computer device that stays on for days is similar to a human not getting sleep. Things slow down and become fragmented. VRAM, Page File, etc start getting cluttered.
I'm not surprised your phone won't enter deep sleep after three days of being on. After that much use, you'd have used various apps and services causing wakelocks.
That's what I experience, at least.
Click to expand...
Click to collapse
My S6 didn't do this though. I could go for a couple weeks without restarting it and it would still enter deep sleep.
I had a similar problem. For me it wasn't every three days, but usually 24-36 hours. But same issue, suddenly wouldn't go into deep sleep and a restart would fix it.
I found my issue to be gas buddy app and it trying to poll locations via bluetooth. Google it, there are lots of threads on it, but basically due to bad programming it would just jam on.
I figured this out as i could get my phone to go into deep sleep by turning off bluetooth, so that might be a quick easy test for you.
Also remember my in case (and unfortunately for a lot of other people) it was the gas buddy app. but others have reported the same issue with other apps.
i don't know if android's implementation on bluetooth location is busted, or the way the apps are using it.

No incoming texts over night until morning; they never show up

Hi folks,
I've got the 6013 model in the US, running on AT&T, completely stock never rooted, fully updated to 10.3.11. Either the most recent update, or the one before that, seems to have caused an issue where texts sent to me overnight or in early morning before I first use the phone never show up. I've missed some important notifications due to this. The worst thing is they NEVER show up... they aren't just delayed until I wake the phone up. After I start using the phone, new texts make it through just fine. The phone seems to be sleeping deeper or something and not getting any of these cellular-based texts. Emails and other notifications based on wifi internet seem to be showing up fine.
Do not disturb is NOT enabled (and, I've tried toggling it on and off without change). This has been going on for weeks or longer, multiple reboots, etc.. I've checked my default texting app (Textra) and the phone's built-in Messages app... the texts aren't in either app. They just never show up.
What else can I look into to check the cause of this and hopefully a fix?
Thanks!
As a test today, I sent a text from my work phone to my personal OnePlus when I got up (late! Father's Day!) before interacting with my OnePlus at all. It did receive the text just fine. I think the cellular radio may be on some timer and going to sleep / waking up on some sort of schedule. Where are the settings for controlling this kind of thing? I haven't messed with this phone's settings much... it just worked fine out of the box and ever since for the last two and a half years until recent update messed this text thing up.
Further information: In Settings, Battery, Battery Saver is OFF (I've never enabled this) and under battery optimization I noticed Textra was set for Intelligent Control; I've toggled this to Don't Optimize. "Messages" was not present; I never use it.
Is there anything else to try? Note that the phone is plugged in and fully charged at the time these issues are occurring.
Frankenscript said:
Is there anything else to try?
Click to expand...
Click to collapse
Dude, not sure but hope it will work,
anyway trying will cost nothing...
Go to settings > battery > battery optimization >
hit on upper right 3 dots and select advanced optimization,
then be sure " SLEEP STANDBY OPTIMIZATION"
is toggled OFF.
Try again and cross your finger...
Cheers
Dadditz said:
Dude, not sure but hope it will work,
anyway trying will cost nothing...
Go to settings > battery > battery optimization >
hit on upper right 3 dots and select advanced optimization,
then be sure " SLEEP STANDBY OPTIMIZATION"
is toggled OFF.
Try again and cross your finger...
Cheers
Click to expand...
Click to collapse
Thanks @Dadditz , that was already off. Sigh. Not sure why this happens. I've tested when I get up at 7 am, sending a text from another phone, and my 6T receives it, but during the darker hours of the night, no joy. Thanks for the reply, though.
Just as a follow up, the problem seems intermittent. I got some 4 am texts from my sump alarm when the wifi went down briefly. No idea what's going on, but it's intermittent rather than constant.

Categories

Resources