Question Notifications delay - Google Pixel 6 Pro

Hi guys,
Since I got my device I noticed that some of the notifications didn't arrive at time and when I take the phone from the table Im getting multiple notifications.
I tried to disable Doze with
./adb shell dumpsys deviceidle disable
And it's works great but I need to connect the device to my computer and run the adb command every time that I turn my pixel off.
My question is if there is any tool to run that script automatically every boot ?
I tried Franco kernel manager but it keeps saying error -1
Any advise ?

what kind of notification ?
I observed gmail notification constantly (on all my android phones) are delay about 3-8minutes , of course when phone is on deep sleep mode

Well I have several news apps for example and my work email .
The problem is that in the second that pick up the phone from the table I received like a 5 6 notifications at once

Related

"Ok Google" voice command displays "offline"

Hi all,
I have sometimes the problem, that at first the watch reacts properly after saying "Ok google". It records my command and also displays the recognized text correctly, but after that it does not execute the command but displays "offline" (e.g. calling a contact or setting the alarm clock).
The connection to the phone itself (using Bluetooth to my Samsung Note 4, Android 5.1.1) is stable. I have read about this behavior also on other forums with different smart watches (e.g. Moto 360). There is some indication that the problem is caused by the phone being unable to access the Internet at the time, although it has a stable and strong 3G connection with no data restrictions set (e.g. allow background data). It also happened when the smart phone was connected to my local WiFi.
The problem is not 100% reproducible. Most of the times the command gets executed by the first try, sometimes the problems disappears after repeating the voice command several times and sometimes it disappears by unlocking the smartphone.
Have you experienced this problem as well sometimes? If yes, are you using a Samsung smartphone and which Android version are running? I somehow have the feeling it is related to the android wear app and maybe to Samsung smartphones.
I also use smart unlock, which means I can simply unlock my phone by swiping the homescreen as long as my phone is connected to the watch and have to use fingerprint unlock otherwise.
foo said:
Hi all,
I have sometimes the problem, that at first the watch reacts properly after saying "Ok google". It records my command and also displays the recognized text correctly, but after that it does not execute the command but displays "offline" (e.g. calling a contact or setting the alarm clock).
The connection to the phone itself (using Bluetooth to my Samsung Note 4, Android 5.1.1) is stable. I have read about this behavior also on other forums with different smart watches (e.g. Moto 360). There is some indication that the problem is caused by the phone being unable to access the Internet at the time, although it has a stable and strong 3G connection with no data restrictions set (e.g. allow background data). It also happened when the smart phone was connected to my local WiFi.
The problem is not 100% reproducible. Most of the times the command gets executed by the first try, sometimes the problems disappears after repeating the voice command several times and sometimes it disappears by unlocking the smartphone.
Have you experienced this problem as well sometimes? If yes, are you using a Samsung smartphone and which Android version are running? I somehow have the feeling it is related to the android wear app and maybe to Samsung smartphones.
I also use smart unlock, which means I can simply unlock my phone by swiping the homescreen as long as my phone is connected to the watch and have to use fingerprint unlock otherwise.
Click to expand...
Click to collapse
I had an LG Urbane that had this issue. I did a lot of reading and found that pretty much every Android Wear watch model has this issue, but it is seemingly random wrether or not you will experience it. I read the same thing about the Huawei watch but took a chance and swapped it for my Urbane and it has been working fine. I would try and return it for another Huawei or a different model, and also downgrade the Android Wear app on your phone to version 1.3.0.2369832 (didnt fix the connection prob for me, but did help with other issues)

Not receiving notifications unless I wake screen in OnePlus 3 running Marshmallow

Hi there, I was wondering if anyone might have any suggestions on how I could disable the Android Marshmallow doze/deep sleep mode that is default on new devices to save battery. I have a OnePlus 3 and have made every effort to check that all my notifications for calendar, whatsapp, emailing, etc. are set to both vibrate and make a sound, disabled all battery optimization features for apps, tried using screenlock wake apps to avoid missing notifications, and more. However, I am still unable to get notifications for whatsapp, emails, calendar reminders and events once my screen goes to sleep or I lock then phone and it's idle (so after about 15-30 minutes of it sleeping), but calls and texts seem to come through fine (or at least I haven't noticed these being an issue as much). This is a HUGE inconvenience, as my main reason to have a smartphone is so I can check emails, calendar events and such right as I receive them, and not only when I wake up my screen (which then bombards me with all my previous missed notifications from hours before). I have a feeling this is an android 6.0 issue and not due to the OnePlus 3, because it's been reported in other sites and by people with phones also using either this OS or lollipop. My older Samsung galaxy S4 running kitkat never had these problems, and at this point I'm very keen on going back if I can't get my new phone (or this OS, as I predict) to notify me right away even when my screen is locked and phone asleep (I can't always remember to check it especially if I'm busy at work). I am willing to root the phone and change settings if that's an option, but I would please like to see if you guys have any other suggestions for allowing my phone to receive notifications right away even when in sleep mode/idle/dozing. Thank you for your time in advance. Oh last thing, I also posted this question in other forums because I am honestly quite desperate to find out what I can do to resolve this issue, so I'm sorry if that's an inconvenience...
mblancoc said:
Hi there, I was wondering if anyone might have any suggestions on how I could disable the Android Marshmallow doze/deep sleep mode that is default on new devices to save battery. I have a OnePlus 3 and have made every effort to check that all my notifications for calendar, whatsapp, emailing, etc. are set to both vibrate and make a sound, disabled all battery optimization features for apps, tried using screenlock wake apps to avoid missing notifications, and more. However, I am still unable to get notifications for whatsapp, emails, calendar reminders and events once my screen goes to sleep or I lock then phone and it's idle (so after about 15-30 minutes of it sleeping), but calls and texts seem to come through fine (or at least I haven't noticed these being an issue as much). This is a HUGE inconvenience, as my main reason to have a smartphone is so I can check emails, calendar events and such right as I receive them, and not only when I wake up my screen (which then bombards me with all my previous missed notifications from hours before). I have a feeling this is an android 6.0 issue and not due to the OnePlus 3, because it's been reported in other sites and by people with phones also using either this OS or lollipop. My older Samsung galaxy S4 running kitkat never had these problems, and at this point I'm very keen on going back if I can't get my new phone (or this OS, as I predict) to notify me right away even when my screen is locked and phone asleep (I can't always remember to check it especially if I'm busy at work). I am willing to root the phone and change settings if that's an option, but I would please like to see if you guys have any other suggestions for allowing my phone to receive notifications right away even when in sleep mode/idle/dozing. Thank you for your time in advance. Oh last thing, I also posted this question in other forums because I am honestly quite desperate to find out what I can do to resolve this issue, so I'm sorry if that's an inconvenience...
Click to expand...
Click to collapse
Here is over 900 posts on this issue for your reading pleasure.
https://forums.oneplus.net/threads/push-notification-issues.451149/
Problem solved
Oneplus just released a new oxygen OS update which takes care of the notification issues. But to resolve this before this OTA came out I rooted and disabled the doze mode with dumpsys deviceidle. So all is good now!
mblancoc said:
Oneplus just released a new oxygen OS update which takes care of the notification issues. But to resolve this before this OTA came out I rooted and disabled the doze mode with dumpsys deviceidle. So all is good now!
Click to expand...
Click to collapse
Problem was NOT SOLVED with 3.2.1 OTA you still need to disable Doze in order to fix it.
Sent from my SM-T810 using XDA-Developers mobile app

Question Question of notification..... again...

Hello everyone,
I know that my has always had problems with notifications on MIUI, but with the update to 12.5.1 the problems on my Poco f3 have increased, greatly increased, some apps like gmail receive notifications with huge delay, sometimes 5 minutes, sometimes even 30 minutes, sometimes only when I use the app, almost randomly
This is unacceptable to me, I need the smartphone for work and I cannot receive notifications with such high delays, do you also have this problem?
Now, gmail has never been perfect with notifications due to the absurd power saving system (Doze), the problem is that I am forced to use it because the corporate mail is google business and it cannot be configured with any other mail client, but the notification problems are there with all the apps.
Practically the smartphone does as it wants, sometimes notifications arrive immediately sometimes ...... when he decides.
Clearly I have configured the power management, automatic start (on gmail it is not possible), app lock from the home screen etc etc, everything useless....
So I ask, do I have to change my smartphone? , or in extremis I try to put a custom rom? is the doze system active on custom roms?
thanks for all your answers
First of all, try to factory reset your phone. And let see if everything start to work or stay the same.
Since on me (running miui ID 12.5.20) everything work just well, there is no delay notification at all. Of course i set up apps ON for "autostart" and set battery behaviour to "no restriction".

Question Disable doze?

One of my biggest gripes about Android is the fact that notifications are often delayed. This is because Google has implemented doze - a feature which saves battery life. That's great 'n all, but I absolutely need my notifications ASAP as they're paramount to my business.
I've used the following adb command for a while now to disable doze: adb shell dumpsys deviceidle disable. I know this only works until you restart your phone, but I don't mind doing the command line once a week.
However, it looks like this command does not work for the Pixel 6 Pro. I'm not sure why, but it just doesn't. At first, I thought it may have been an Android 12 issue, but that turned out to be completely incorrect as my new S22 Ultra that's on Android 12 suffered the same delayed notifications ailment, but was remedied by the aforementioned adb command. Now my S22 Ultra gets Gmail/push notifications immediately and on time. So it might be the SoC that's to blame for some reason.
I like the Pixel 6 Pro, I really do. I enjoy Google's UI, the physical look of the phone, etc. but I cannot keep a phone that does not receive notifications on time. Is there a different adb command or a way to disable doze to get notifications on time on the Pixel 6 Pro?
And before anyone recommends it - yes I've tried not optimising Gmail, different email apps, and all the app workarounds - nothing works. Same applies for the S22 Ultra and all my previous Android phones. Only disabling doze allows for push notifications to come through on time.
Any help would be greatly appreciated as I'm not keen on keeping this S22 Ultra, but will if there's no genuine workaround for disabling Doze on the Pixel 6 Pro.
Cheers!
Disabling battery optimization (long press app icon - app info - battery) essentially turns off doze for that particular app. If it's just emails/Gmail you're worried about, do that for the Gmail app. You'll theoretically get your emails on time, and the rest of your phone can zzzzzzzz in peace.
Also of note, Samsung changes a **** ton of the aosp code before using it for their OneUI ROM. It very well may be an Android 12 change than Samsung either reverted or did something else with.
asj0422 said:
Disabling battery optimization (long press app icon - app info - battery) essentially turns off doze for that particular app. If it's just emails/Gmail you're worried about, do that for the Gmail app. You'll theoretically get your emails on time, and the rest of your phone can zzzzzzzz in peace.
Also of note, Samsung changes a **** ton of the aosp code before using it for their OneUI ROM. It very well may be an Android 12 change than Samsung either reverted or did something else with.
Click to expand...
Click to collapse
You won't have to hook it up to your command prompt every time you reboot, either.
Why don't you simply disable optimisation for the apps you need instant notifications for? (Settings > Apps > [AppName] > Battery Usage > Unrestricted)
Again, I've tried that and it simply doesn't work.
I just sent myself an email after leaving 3 of my phones down, idling for 8 minutes. The S22 Ultra and iPhone 13 Pro received the email within 5 seconds of each other, and the Pixel didn't receive anything until I turned it on and unlocked it. Battery optimisation removal is the first thing I tried and it didn't work.
It's not doze then.
If the notion actions are driven through gservices, then that is another aspect of the problem that needs to be "not optimized".
Easiest and best way to solve this kind of problem is to use better software. Fairemail will deliver instant notifications and uses a direct IMAP connection rather than routing everything through gooble.
96carboard said:
If the notion actions are driven through gservices, then that is another aspect of the problem that needs to be "not optimized".
Easiest and best way to solve this kind of problem is to use better software. Fairemail will deliver instant notifications and uses a direct IMAP connection rather than routing everything through gooble.
Click to expand...
Click to collapse
I get what you're saying, but you shouldn't have to use a different app to get notifications. Gmail should work within a reasonable amount of time. It's a problem if you have to turn on your phone for a notification to appear, especially from a Google app.
Op should do a factory reset. And during Android set-up, uncheck device settings (and apps for good measure). Turn off app optimization, and test it again.
But I've seen this issue on Android phones (and iPhones), and no one has ever actually resolved the issue. It seems like it's random when the issue occurs (or doesn't).
I have seen one user report that the adb command to disable doze does work on the Pixel 6 Pro. Not sure how accurate that report was though.
Maybe also try adb shell dumpsys deviceidle disable whitelist + <app package name>
You may want to check what app bucket the apps you want instant notifications for are in (Developer Options>Standby Apps). If they are in either Active or Working Set you "should" be getting notifications on time. If they aren't set to one of those categories you can try changing it to Active or Working Set, although the app may just change it back.
@AhsanU
Hi
I assumed just like you that the problem is with doze .
But , after using the adb command everything works fine except Gmail.
So I replaced Gmail with other email client and now everything just fine.
asj0422 said:
It's not doze then.
Click to expand...
Click to collapse
It absolutely is, as disabling doze literally fixes the issue. This is not even a point of discussion.
Lughnasadh said:
I have seen one user report that the adb command to disable doze does work on the Pixel 6 Pro. Not sure how accurate that report was though.
Maybe also try adb shell dumpsys deviceidle disable whitelist + <app package name>
You may want to check what app bucket the apps you want instant notifications for are in (Developer Options>Standby Apps). If they are in either Active or Working Set you "should" be getting notifications on time. If they aren't set to one of those categories you can try changing it to Active or Working Set, although the app may just change it back.
@AhsanU
Click to expand...
Click to collapse
Looks like Gmail is set as active, as is every single app I've downloaded - odd
AhsanU said:
It absolutely is, as disabling doze literally fixes the issue. This is not even a point of discussion.
Click to expand...
Click to collapse
If this was the case then wouldn't we all be seeing the same thing? When i order something off Amazon on my PC my Pixel 6 Pro goes off at the same time the email arrives on the PC even if i have not picked my phone up for some time.
There has been odd behaviour for some people with Gmail not doing notifications in push mode. Had this with my OnePlus device, but seen it reported for Google, Samsung and other devices for Android 11 and 12.
For some uninstalling the app and re-installing solved it, for others factory reset. Some could not get it to be resolved at all.
Some needed to sort the Google services app as well as Gmail.
It wasn't Doze that was causing the issue though.
AhsanU said:
Looks like Gmail is set as active, as is every single app I've downloaded - odd
Click to expand...
Click to collapse
Can you try this: Go to Settings, System, Users. Create a new user (just a brand-new google account with Fake Information (you can delete it later)). While logged into that profile, lock the phone. wait 10 mins. Then go to a different device and send an email to that new account. How long does it take for the email to come in? Turn off wifi and try it on mobile. Any difference?
AhsanU said:
Looks like Gmail is set as active, as is every single app I've downloaded - odd
Click to expand...
Click to collapse
Did you see this thread on Reddit? Sounds familiar.
https://www.reddit.com/r/GooglePixel/comments/t2cuuu
Im on lineageos pixel 3xl. Have always used the dumpsys deviceidle disable command on previous phones with success. It was the only thing that worked. Battery optimization settings were never enough. Anyway, running the command also solved the problem on my pixel 3xl running lineages. Until about 2 weeks ago. I did recently install super freezze. Uninstalling it now. Will report back if it fixes my issue.
bobby janow said:
Did you see this thread on Reddit? Sounds familiar.
https://www.reddit.com/r/GooglePixel/comments/t2cuuu
Click to expand...
Click to collapse
What was the solution they said worked in the comments?
but i really like android system
This is an issue with the introduction of doze. I can confirm that on every single Android phone I've used since doze was introduced "think it was marshmallow, could be wrong". I have experienced this issue with all my pixel phones up to 4xl, Galaxy s21 Ultra, and OnePlus 7 Pro and 8 Pro. Executing "dumpsys deviceidle disable" via rooted device in terminal or the adb command via computer fixes the issue 100% every time. I also experience no extra battery drain. Google simply needs to get rid of doze it's no longer needed. I carry an iPhone along with my android of choice and only when device idle is disabled do I get my notifications instantly just like I do without fail on my iphone. It's very depressing to have to jump through hoops to get important instant notifications on an Android phone.

Question New Pixel 6 pro delayed notifications, halp!

Ok so i just got a 6 pro. Rooted day 1 before activation. Running Android 12. Seemed to work fine for a few days. Seemed.... So now my notifications are delayed or not coming thru at all unless i restart. My old phone was a Samsung Note 8 rooted as well. I wanted to get away from Samsung even though I loved the UI because my friend has a pixel 4 XL. Abd i loved how his phone had a better signal than mine, sane carrier and next to each other. Ive googled and watched yt vids to fix this issue. Nothing helps. It will work for 5 mins or 5 hrs then just stop. Even txt wont come thru on Signal. If i restart it will seeming work again. I rarely ever had to restart my Note 8. At this point i just want my brand new phone to work. Since the initial root i havent factory reset or wiped and reinstalled the root. Not sure what i should do first. Also not sure if going to 13 would fix this. Some stuff i read says yes and some stuff says 13 is buggy too. I wish i could put Android 11 on this phone and call it a day. Can anyone please help me? I dont wanna return my new phone.
TL;DR
Android 12 rooted notifications delayed and not working. Halp pls!!!!!
Hi. Have you tried setting any of the particular apps for which you're having trouble with timely notifications to not being restricted from background usage? Long press the app icon / App info / Battery / Unrestricted. In App Info, you can disable "Pause app activity if unused" for those particular apps.
My wife and I have a lot less trouble with timely notifications on our Pixel phones than we did on our two Galaxy Note 10+ phones.
Yes. I've done all of that. I've set battery to unrestricted. Every tip I could Google. And it's still intermittent. It's driving me nuts. I just need this phone to work.
para5it33v3 said:
Yes. I've done all of that. I've set battery to unrestricted. Every tip I could Google. And it's still intermittent. It's driving me nuts. I just need this phone to work.
Click to expand...
Click to collapse
Here's a Reddit thread about a similar issue (seems to be some Google programming error with no fix):
https://www.reddit.com/r/GooglePixel/comments/t2cuuu
I've always had notification issues (late, none) since doze was first introduced. Every phone I've had I've had to run the following command to get notifications:
adb shell dumpsys deviceidle disable
The issue is, this command (which disables doze) has to be run each time the phone is rebooted. I use Tasker to run this script on my rooted P6P on each reboot (you can also use SManager). On my work phone (a non-rooted S10+) I have to open a command prompt and type the command.
I'm not an Android programmer or expert, but running this command has always worked for me. I realize disabling battery optimization and stuff is supposed to do the same thing, but that has been inconsistent, and some of my phones didn't provide the ability to change battery options for some apps.
Also, look for any rogue Magisk modules you have installed.
Good luck.
Hey, have you found the help that you needed ?
I too was having delayed notifications and could not for the life of me figure it out. Turns out it was NordVPN causing the issue. I changed the protocol from "Recommended" (assume that's NordLynx) to "OpenVPN (TCP)" and it fixed it right away!

Categories

Resources