How to Fix Delayed Notifications on a Google Pixel Phone on Android 11, 12, 13, 14 Using ADB via USB (Tethered) or On the Device Itself (Untethered)

Posted in Tips and tricks on 17 March 2024

Relevant for Google Pixel models:

  • Pixel 4, Pixel 4a, Pixel 4a 5G, Pixel 4 XL
  • Pixel 5, Pixel 5a, Pixel 5a 5G
  • Pixel 6, Pixel 6a, Pixel 6 Pro
  • Pixel 7, Pixel 7a, Pixel 7 Pro
  • Pixel 8, Pixel 8a, Pixel 8 Pro
  • Pixel 9 and Pixel 10 series
  • Many non-Pixel phones and tablets as well

Android versions:

  • Android 11
  • Android 12
  • Android 13
  • Android 14
  • Android 15
  • Android 16

Great Cameras, Buggy OS

One of the requirements for a new project of mine was a dedicated Android smartphone with some of the best cameras on the market. According to the latest tests, the Google Pixel smartphone lineup still leads the pack when it comes to reasonably priced camera phones. It also seems like there haven't been any noticeable improvements to camera hardware since the release of the sixth-generation Pixel. So I picked up a shiny new Pixel 6a, created a new Gmail account and signed in.

All was going well until I realized that most, if not all, of my email and instant messaging apps' notifications were delayed. Sometimes for a minute. Usually — for much longer.

At first I shrugged it off, thinking, "Well, what did I expect? It's an Android phone. You have to spend time fiddling with it to get it to behave as needed...". You know the drill.

So I tried fixing it with the tools provided by the OS:

  • Disabled Battery Saver and Adaptive Battery
  • Lifted any background activity restrictions for Gmail and messaging apps
  • Allowed those apps to have unrestricted access to the internet
  • Updated both Android and the apps to the latest versions

power-saving-disabled-on-pixel-phone-no-effect

Alas, even after completely powering down and restarting the phone, as recommended in some forums, nothing changed. Within about 5 minutes, the phone would still go into some kind of deep-sleep mode, which in turn would cause email and instant messaging notifications to be delayed again.

Really? Do I still have to switch into a "Power User" mode and jump through hoops to fix freaking notifications?

Guess some things never change...

gta-here-we-go-again

Why?

Long story short, it's all because of a power-saving feature called Doze:

Doze reduces battery consumption by deferring background CPU and network activity for apps when the device is unused for long periods of time. App Standby defers background network activity for apps with no recent user activity. While the device is in Doze, apps' access to certain battery-intensive resources is deferred until the maintenance window. The specific restrictions are listed in Power management restrictions.

Sounds nice, until you experience it for yourself on Google Pixel phones in particular. I've never had any issues with notifications on Android phones from brands like Samsung, TCL, or Xiaomi — to name a few. For some reason, only Pixels have been plagued by delayed-notification issues ever since Google moved them to its own SoC, known as Google Tensor. I suppose the power efficiency of the SoC wasn't very impressive, so Google had to resort to enabling permanent aggressive power saving in the OS — even at the cost of apps being constantly killed in the background on a phone with 6 GB (!) of RAM, half of which is often free, while notifications and push messages arrive with considerable delays.

Luckily, there are several solutions to this problem.

Option 1: Doze Stopper App

Yep, just a regular app. This is something I was actually planning to build while playing with dotnet C# and compiling simple apps for my Android devices, until I discovered Doze Stopper.

doze-stopper-screen

Doze Stopper works like this: as a native Android app it can request certain permissions that give more control over the way the app is managed by the OS. In this case, its manifest declares the android.permission.FOREGROUND_SERVICE permission. This means that it can (and does) create a so-called foreground service, which is displayed as a persistent or "ongoing" notification, one that couldn't be swiped away on Android versions prior to 14. And unlike BACKGROUND_SERVICE-type services, the foreground ones can keep running even when the app isn't in use, and they are (usually) not susceptible to Doze activity throttling. This lets the app send specific system commands that wake up the CPU at any moment and reset the Doze timer, effectively preventing the device from entering "deep sleep" or throttling background services and certain notifications (especially those from apps built for earlier versions of Android). But even this isn't 100% bulletproof, unfortunately. Some vendor-specific OS tweaks may add custom battery managers that still throttle or pause services unless the app is explicitly whitelisted.

And trust me, I'm well familiar with the difference between service types! I have several persistent Python scripts running on my tablet inside Termux terminal emulator, which make extensive use of a Termux:API plugin to access Android system functions like notifications. And since these are "free-form" notifications that can be created at will, they can only exist as background service-type notifications. And, oh boy, does Android love throttling those when the device is in deep sleep, even when the app requests a "wakelock". So a native Android app that implements and registers a foreground service is the only solution to this, unless you're willing to go the ADB route (see below).

As for the Doze Stopper — in my case, the app worked 50/50. It would automatically detect when a Pixel phone entered Doze and would wake the CPU up. But it failed to do the same on my Lenovo Legion Y700 Android tablet, where those hardcoded vendor-specific tweaks came into play and spoiled the fun. So it's not a silver bullet fit for all brands and devices.

Its convenience and ease of use come with the usual freeware catch — privacy concerns. Like most freeware apps nowadays, it collects data about your device and sends it to a server somewhere.

doze-stopper-privacy-concerns

So if you don't mind that (or, like me, are already running a firewall app like the open-source RethinkDNS — this might be a solid solution to the problem of delayed notifications right there, as long as it actually works on your particular device. Make sure to disable battery optimizations for the Doze Stopper app, or the OS will throttle it as well.

If the app route isn't your thing, or you want full control — it's time for some happy debugging!

Option 2: Disable Google Pixel Light and Deep Sleep Modes Using ADB

adb-tools-icon

ADB, or Android Debug Bridge, is a well-known tool among Android enthusiasts. It lets you fine-tune the OS, remove bloatware, and do some other cool stuff. It's a Power User tool, so of course it should be used with care.

Fortunately, disabling Doze via ADB is safe and easy. The only caveat is that you need to do this after every phone restart. But considering how important it is to have reliable notifications, and how rarely you need to reboot a phone, that's hardly an issue.

Activate Developer Options and Enable USB and Wireless Debugging on the Device

  1. Open Settings and select "About"
  2. Tap on "Build number" seven times until you get the message: "Congratulations! You are now a developer!"
  3. Go back to Settings => System and open the new "Developer options" section at the bottom of the page
  4. Scroll down and check the "Android debugging" or "USB debugging" entry under "Debugging"
  5. While on this screen, you can also enable "Wireless Debugging". This way, you can run ADB commands right on the phone via an app, without needing to connect it to a computer over USB after each reboot. More on this below

Now you can decide how to issue ADB commands:

  1. Connect the phone to a computer and issue the command via ADB (classic, "tethered" option)
  2. Set up ADB on the phone itself and send commands via an app. This way you'll never have to connect the device to a computer to disable idle mode ever again (recommended, "untethered" option)

Disable Device Idle Modes Using ADB on a Computer

I'll walk through it on Windows (the most popular OS). If you have macOS, you're probably using an iPhone anyway. And if you are a Linux user, you're smart enough to figure it out from here.

  1. Download ADB for Windows zip from Google and unpack it into some directory. If you're on macOS or Linux, see the "Installing adb and fastboot" section in this article
  2. Download USB Drivers — see the "Download the Google USB Driver ZIP file (ZIP)" option. Unpack it somewhere. Then navigate to the folder with the files, right-click the "android_winusb.ini" file, and choose "Install"
  3. Navigate to the folder with the previously unpacked adb.exe, hold down Shift, and right-click anywhere in the window. Select either the "Start Command Prompt" or the "Start Windows PowerShell" option, whichever is available on your machine
  4. Connect the phone to the computer, unlock it, and confirm in the pop-up dialog that "this computer can be trusted for debugging"
  5. Back to the computer: in the console window type:
adb shell dumpsys deviceidle disable

You should receive confirmation that both power-saving modes are disabled:

idle-modes-disabled-via-adb-on-pc

Done!

*Until next reboot that is...

Disable Device Idle Modes Using the ADB Shell Mobile App

Obviously, using a computer to repeat this procedure every time the phone is rebooted is inconvenient. Here's where the Wireless Debugging you enabled earlier comes in! 1. Connect the phone to any Wi-Fi network 2. Follow this article to install the app and set up wireless debugging: How to Run ADB Commands on Android Without a Computer. Before you ask — yes, you do need to use the split-screen app display mode 3. After successfully pairing the ADB Shell app with the phone, enter the "Local Shell" section of the app and type in the same command you used with ADB on a computer. Press Send on your on-screen keyboard or use the ⏎ button:

adb shell dumpsys deviceidle disable

You should receive confirmation that both power-saving modes are disabled:

adb-shell-on-pixel-phone-disable-idle-modes

Done!

Now, even after rebooting the phone, it takes just a couple of moments to re-apply the fix! The only two things you need to do before running the app are:

  1. Connect to a Wi-Fi network
  2. Re-enable wireless debugging in Settings if it switched off since last reboot

If It Works, It Works

There you have it. A vital fix for reliable push notifications on Google Pixel phones.

Sure, it only lasts until the next reboot. But that's still a million times better than having notifications that hardly work at all, right? Now you should begin receiving notifications from Gmail and instant messaging apps as soon as new messages arrive, no matter how long your phone has been sitting idle.

I have just one question...

What the Hell, Google!?

Why, in the year 2024 2025, in your latest and greatest Android, on a phone made by your company, do we have to go through the hokey-pokey and come up with workarounds for bugs that should have been fixed long ago? Recent online discussions (as of October 2025) confirm that this issue still plagues even the newest Pixels. I'm starting to think this is intentional, but I have no idea why...

I compared the phone's battery life with and without the fix and didn't see a significant difference. Idle mode on your Android phones is broken. It has been broken for years! Either fix it for good, or at least make the options in the Settings app actually work — instead of being the placebo switches they have been since Android 14!

If it weren't for the excellent cameras and camera software, I would definitely have gone with another smartphone manufacturer. But for about $300, there aren't many alternatives that offer both a powerful, non-bloated Android OS and amazing imaging capabilities for both stills and video capture.

So I guess this will have to do for now.

P.S. Just to be thorough — and to confirm that this fix is suitable (read: required) for the older Pixel models based on a variant of the Tensor SoC — I ran through the same procedure on my Pixel 4a, which runs Android 11. And lo and behold — Telegram actually started receiving messages even when I left the phone idle for hours. That had never worked on this unit before! So I encourage you to try this on your Pixel: it's a safe and effective solution to the problem of missing notifications on all Tensor-based Google Pixel phones.

Hope this helps!

And remember: if everything else fails, there's one sure way to completely and reliably disable Doze functionality: connect your device to a USB charger/power bank and never unplug it. The OS can't optimize battery use when the battery is not used.

think-differently

The more you know.