• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

This is pathetic -- Android Notification Delay problem fixed by using adb?!

Search This thread

nixnixnixnix4

Senior Member
Mar 15, 2021
331
65
I simply cannot recommend Android to my normie friends and family.

Let me restate this: It is not our job to fix Google's bugs.

This is a US-centric view.

If you can't tell: I am a bit aggravated right now.

I could not get my GMail, GCal, and other notifications to come through properly on Pixel 5's Android 11 OR S21 Ultra's Android 11.

This has apparently been an issue that many an Android user suffers through silently -- and, some don't even know that this is happening to them. I guess they're embarrassed to publicly state that their mobile OS is subpar.

When you get an e-mail or if a calendar event reminder is coming up, and even if your phone's screen is OFF/locked: you should get an \*\*\*instant\*\*\* notification. No delay whatsoever.

Well, if my screen was off/locked, I wouldn't get these notifications or it would take 10+ minutes to show. But, once I unlocked my phone: boom, notifications. And, sometimes even if my screen wasn't locked, there would be a serious delay or no notification.

After spending loads of time trying to fix this problem, me and my friend finally stumbled upon a solution: ./adb shell dumpsys deviceidle disable

A reboot eliminates this setting modification, by the way.

Do not tell me that instant e-mail notifications are not necessary. Many of us work jobs that require them to be instant.

No end user should ever have to go through this. iPhone users certainly don't go through this.

If Google doesn't care about Android users, then, why should I, as an Android user, care about Android too? Just switch to iPhone, I guess.

Google pays Apple $10bn+ every year and makes better software for iOS than it does for Android.

Just look at the damn widgets that iOS users get.

So, $10bn/year plus the cost of the software developed to cater to iOS users.

This makes Google a simp cuck to Apple, nothing else.

Would Apple ever return this favor? No.

Therefore, Google management is a simp cucked by Apple, nothing more.

We are fools to be using this OS.

If Google is willing to subsidize my iOS software updates and experience to the tune of billions of dollars every single year -- then, why not just switch?

Clearly, my experience has shown me that Android can be cheaper -- if I don't value my time.

Statistic after statistic bears it out: iPhone users are wealthier.

I am tired of being an Android luser -- why should I take on such abuse and neglect by the main author of my mobile OS?

Before you start patronizing me: YES, I tried every other bloody trick in the book to fix this issue.

No end user should ever have to go through this! No end user should have to run adb commands to enable basic functionality.

There are some basic things that modern smartphones should just be able to do: instant notifications, 3rd party camera support, functioning RCS or some other form of E2EE messaging built-in, reliable local backups, a nationwide network of repair facilities, etc.

Android fails on all of these.

iPhone ordered. Glad to leave this Android ghetto behind.

Hey Google, if you have some self-respect: then, instead of paying Apple $10bn an year and doing iOS development, how about you actually work on some basic Android functionality instead?
 

vp1117

Senior Member
Jan 30, 2019
55
6
You are right and I fully share your emotions regarding nasty state of notifications we often observe in our phones.

However, apart from google, there is a 3rd party: the china cellar/basement where our phones are produced. Owners of these cellars think they are very clever guys when they implement power management tools in their ugly stock ROMs. Guess what these power management tools do with notifications!

Sometimes (not always) you have to know how android is programmed in order to fight with power management. Especially, this is true with phones that run 6-7-8 versions of android.

I have 2 more or less modern phones in my family. They run on A10 and do not have these problems with notifications.
 
  • Like
Reactions: wgraz

nixnixnixnix4

Senior Member
Mar 15, 2021
331
65
I have 2 more or less modern phones in my family. They run on A10 and do not have these problems with notifications.

I never had these problems with Android 10.

So, yeah, it MAY be Android 11.

I am downloading the May update for my S21U. Let's see if this fixes it.
 

nixnixnixnix4

Senior Member
Mar 15, 2021
331
65
Yes, phone OSes and software can be annoying. But I don't think iOS is the solution.

Regarding the problem, I suppose you've already tried changing the sleep settings, but if not: maybe deviceidle whitelisting could be helpful.
Even the folks in that thread are having mixed results.
I just ran the blanket OS-level command as described in my original post.
I haven't faced any noticeable depreciation battery life due to this.
 

wgraz

Senior Member
Sep 22, 2012
147
17
New Jersey
Isn't it true that whitelisting via ADB only DISABLES Battery Optimization for a particular app, and you can do the same thing via the Android interface? And we all know that turning Battery Optimization off doesn't do squat to get notifications sooner.

OR does whitelisting via ADB (supposed to) do something more powerful than disabling Battery Optimization? Thanks so much.
Looking forward to your reply
 

nixnixnixnix4

Senior Member
Mar 15, 2021
331
65
Isn't it true that whitelisting via ADB only DISABLES Battery Optimization for a particular app, and you can do the same thing via the Android interface? And we all know that turning Battery Optimization off doesn't do squat to get notifications sooner.

OR does whitelisting via ADB (supposed to) do something more powerful than disabling Battery Optimization? Thanks so much.
Looking forward to your reply
AFAIK: Whitelisting a single app thru the UI and thru ADB has the same effect. I disabled battery optimizations on all apps and still faced a delay. Perhaps, Google will take care of this issue eventually. But, I doubt it.

But, yes, disabling deviceidle thru adb works as a full-proof solution.

I'm still testing to see if disabling "Android Adaptive Notifications" works.

Also, I wonder if there's a way to see if the phone received the email but just chose not to show us the notification.
 

wgraz

Senior Member
Sep 22, 2012
147
17
New Jersey
AFAIK: Whitelisting a single app thru the UI and thru ADB has the same effect. I disabled battery optimizations on all apps and still faced a delay. Perhaps, Google will take care of this issue eventually. But, I doubt it.

But, yes, disabling deviceidle thru adb works as a full-proof solution.

I'm still testing to see if disabling "Android Adaptive Notifications" works.

Also, I wonder if there's a way to see if the phone received the email but just chose not to show us the notification.
Sorry for the late response.

Thanks for confirming the adb whitelist and disabling battery optimization are the same.

I tried: adb shell dumpsys deviceidle disable
but I'm still getting delayed email notifications, once the device has been sleeping for 5-7 minutes.

I don't think Google will ever give freedom back to it's users. They want control. Years ago, I think Gmail had push notifications, but Google pulled that back. My guess is they want to reintroduce it in the future as a paid service because they felt they had very little in their gmail pipeline at the time. Google's favorability is declining, but I'd still take Android over IOS. I still use Google Voice. Other than that, I wouldn't have any Google accounts on my phone.
 
Last edited:

nixnixnixnix4

Senior Member
Mar 15, 2021
331
65
Sorry for the late response.

Thanks for confirming the adb whitelist and disabling battery optimization are the same.

I tried: adb shell dumpsys deviceidle disable
but I'm still getting delayed email notifications, once the device has been sleeping for 5-7 minutes.

I don't think Google will ever give freedom back to it's users. They want control. Years ago, I think Gmail had push notifications, but Google pulled that back. My guess is they want to reintroduce it in the future as a paid service. My thought is, they felt they had very little in their gmail pipeline so they removed push notifications to reintroduce it at a later time. I hate Google, but I'd take Android over IOS at this point in time. I still use my Google Voice account. Other than that, I wouldn't have any Google accounts on my phone.
./adb devices
./adb shell dumpsys deviceidle disable
./adb disconnect

If that didn't work for you, go into the GMail app and look closely at the settings to see if there is something off.

Also, does disabling GMail and using Outlook instead work for you?
 

wgraz

Senior Member
Sep 22, 2012
147
17
New Jersey
./adb devices
./adb shell dumpsys deviceidle disable
./adb disconnect

If that didn't work for you, go into the GMail app and look closely at the settings to see if there is something off.

Also, does disabling GMail and using Outlook instead work for you?
I didn't use the: adb disconnect
Just "exit" the cmd and unmounted the phone.

I don't use the gmail app but have a gmail accounts ( in addition to other email accounts) I use through another email app. But every email app I try has this issue after the phone's been sitting for 5-7 minutes.

I mean, what is google trying to do? Save battery power to reduce mining of essential minerals for new batteries? Or they simply don't want people getting instant information?
 
Last edited:

nixnixnixnix4

Senior Member
Mar 15, 2021
331
65
We need someone with the expertise to check if the e-mail made its way to the phone or not.
This will tell us if the issue has to do with just notification display OR something with the internet/server.
 

wgraz

Senior Member
Sep 22, 2012
147
17
New Jersey
We need someone with the expertise to check if the e-mail made its way to the phone or not.
This will tell us if the issue has to do with just notification display OR something with the internet/server.
I was reading in this thread about PARTIAL_WAKE_LOCK

I asked if it was even possible if you can apply this PARTIAL_WAKE_LOCK to other apps.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I simply cannot recommend Android to my normie friends and family.

    Let me restate this: It is not our job to fix Google's bugs.

    This is a US-centric view.

    If you can't tell: I am a bit aggravated right now.

    I could not get my GMail, GCal, and other notifications to come through properly on Pixel 5's Android 11 OR S21 Ultra's Android 11.

    This has apparently been an issue that many an Android user suffers through silently -- and, some don't even know that this is happening to them. I guess they're embarrassed to publicly state that their mobile OS is subpar.

    When you get an e-mail or if a calendar event reminder is coming up, and even if your phone's screen is OFF/locked: you should get an \*\*\*instant\*\*\* notification. No delay whatsoever.

    Well, if my screen was off/locked, I wouldn't get these notifications or it would take 10+ minutes to show. But, once I unlocked my phone: boom, notifications. And, sometimes even if my screen wasn't locked, there would be a serious delay or no notification.

    After spending loads of time trying to fix this problem, me and my friend finally stumbled upon a solution: ./adb shell dumpsys deviceidle disable

    A reboot eliminates this setting modification, by the way.

    Do not tell me that instant e-mail notifications are not necessary. Many of us work jobs that require them to be instant.

    No end user should ever have to go through this. iPhone users certainly don't go through this.

    If Google doesn't care about Android users, then, why should I, as an Android user, care about Android too? Just switch to iPhone, I guess.

    Google pays Apple $10bn+ every year and makes better software for iOS than it does for Android.

    Just look at the damn widgets that iOS users get.

    So, $10bn/year plus the cost of the software developed to cater to iOS users.

    This makes Google a simp cuck to Apple, nothing else.

    Would Apple ever return this favor? No.

    Therefore, Google management is a simp cucked by Apple, nothing more.

    We are fools to be using this OS.

    If Google is willing to subsidize my iOS software updates and experience to the tune of billions of dollars every single year -- then, why not just switch?

    Clearly, my experience has shown me that Android can be cheaper -- if I don't value my time.

    Statistic after statistic bears it out: iPhone users are wealthier.

    I am tired of being an Android luser -- why should I take on such abuse and neglect by the main author of my mobile OS?

    Before you start patronizing me: YES, I tried every other bloody trick in the book to fix this issue.

    No end user should ever have to go through this! No end user should have to run adb commands to enable basic functionality.

    There are some basic things that modern smartphones should just be able to do: instant notifications, 3rd party camera support, functioning RCS or some other form of E2EE messaging built-in, reliable local backups, a nationwide network of repair facilities, etc.

    Android fails on all of these.

    iPhone ordered. Glad to leave this Android ghetto behind.

    Hey Google, if you have some self-respect: then, instead of paying Apple $10bn an year and doing iOS development, how about you actually work on some basic Android functionality instead?
    1
    You are right and I fully share your emotions regarding nasty state of notifications we often observe in our phones.

    However, apart from google, there is a 3rd party: the china cellar/basement where our phones are produced. Owners of these cellars think they are very clever guys when they implement power management tools in their ugly stock ROMs. Guess what these power management tools do with notifications!

    Sometimes (not always) you have to know how android is programmed in order to fight with power management. Especially, this is true with phones that run 6-7-8 versions of android.

    I have 2 more or less modern phones in my family. They run on A10 and do not have these problems with notifications.
    1
    I never had these problems with Android 10.

    So, yeah, it MAY be Android 11.

    I am downloading the May update for my S21U. Let's see if this fixes it.
    It doesn't.
    The May update didn't fix this issue.