Close

What are you looking for?

cancel
Showing results for 
Search instead for 
Did you mean: 

Original topic:

Android 11 - Notifications are delayed when screen is off

(Topic created on: 12-02-2021 11:49 PM)
asustitan
First Poster
Options
Galaxy S10 Series

EDIT: Notifications are currently behaving after reflashing my Stock rom from Odin.


Currently using these settings.

Settings > Apps > three dots (top right) > Special Access > Optimise battery usage > All > App Name (disabled optimise)
Adaptive Notifications - None
Adaptive Battery - Disabled

--------------------------------------------------

I am having major issues with notifications arriving when the phone screen is off. Even after whitelisting apps in the usual spaces.

I've disabled

Settings > Apps > three dots (top right) > Special Access > Optimise battery usage > All > App Name (disabled optimise)
Settings > Apps > three dots (top right) > Special Access > Adaptive Notifications  > None
Settings > Battery and device care > Battery > Background Usage limits > Put unused apps to sleep.
Settings > Battery and device care > Battery > More battery settings  > Adaptive battery

Notifications need fixing.
G973F
Android 11 - One UI 3.0
G973FXXU9EUA4

6 REPLIES 6
Ferenc75
Helping Hand
Options
Galaxy S10 Series
did you the recovery clear cache method after software update?
0 Likes
ewy1983
Journeyman
Options
Galaxy S10 Series
I'm also experiencing this. Any fix?
0 Likes
asustitan
First Poster
Options
Galaxy S10 Series

Mine appears to be resolved now, check my first post.

0 Likes
Tomcat2
First Poster
Options
Galaxy S10 Series

This is clearly an Android issue. I have the same issue. I don't know why the Android enables this Adaptive Notifications itself after dsome time, even though I disable it. I consider this a stupid function. I don't need Android to decide what notification will be shown and when. I need it IMMEDIATELY when the event occurs!!!

This causes big problems for me with my trading applications when I use price alert notifications. I need it to be shown immediately when the alert is raised, not in 5 or 10 minutes or even 1 hour later as it happens very often!!!

I disabled all the features as the this topic author did and removed the app from any batery saving policies but nothing helps. 

I installed the same app on my old Galaxy A3 (2017) with Android 9 and there everything works fine with notifications, so it is clearly an issue with the Android 11 itself.

Can Samsung comment it or fix it possibly?

Eugene Grybinnyk
First Poster
Options
Galaxy S10 Series

I have the same problem for Samsung Galaxy S21. I'm watching my son's blood sugar level (he is having diabetes of type 1) and for me it's critical to receive notifications about low sugar level on time, but I receive them with a delay of 5-45 minutes.
I tried to disable everything in Battery Optimisation but it didn't help.

0 Likes
Tomcat2
First Poster
Options
Galaxy S10 Series

Finally after long searching on the Internet and trying common advices as a disabling battery optimizations, Adaptive Notifications and all those features that didn't help at all, I found the XDA Developers forum where I finally got to the bottom of this issue.

This problem is caused by functionality called as "DOZE", which is implemented in the Android core since Android 6.

https://developer.android.com/training/monitoring-device-state/doze-standby

Basically what is does is that it tries to preserve the phone battery life in a very aggressive way that basically puts all applications and network activity to standby until the maintenance window occurs. The maintenance window is a very short time period where all events from applications waiting in the queue are processed at once and then it puts all apps to standby again until next maintenance window occurs.

Problem is that with every next maintenance window the intervals between those windows are increasing every time up to some long limit. So if you haven't touched your phone for a longer time, like half an hour and the event happens, you will get the notification in the next maintenance window that may be tens of minutes from that moment.

I don't know how Google can act as this is OK. It is NOT!! For me it was causing serious problems with my Forex trading app that didn't display price alerts on time when the event happened but like 5, 15, 30 minutes or even almost 1 hour later !! which is not useful for me because the opportunity for the trade was already gone...

So solution is to disable the "DOZE" in your phone manually using ADB commands. I did it and it works, now I get instant notifications. Unfortunately this has to be done every time after phone reboot as it turns itself the DOZE back on again.

Here is a page with more details:

https://stackoverflow.com/questions/40204605/android-completely-disabling-deviceidle-doze-in-android...

Basically you just issue this ADB command: dumpsys deviceidle disable

You can also put the application to the Doze whitelist but not sure if it works, when I displayed the list, I found out my trading app was already there, maybe because I removed it from the Battery saving policy but the Doze was probably still suspending everything so it worked only in those maintenance windows. I guess it doesn't use those "high-priority FCM messages" described in the DOZE description to force the notifications instantly.

If you are not familiar with ADB, here is some info:

https://developer.android.com/studio/command-line/adb

I used a paid app that allows local ADB connection from the phone directly, so I can disable DOZE after every restart. More info here:

https://forum.xda-developers.com/t/say-hello-to-ladb-a-local-adb-shell-without-needing-root-or-a-com...

It is very sad that this basic feature as an instant notifications have to be fixed via the developer debug interface by user instead of Google who could fix it in the OS itself...shame on Google...

 

More forums on this topic:

https://forum.xda-developers.com/t/psa-how-to-fix-the-notification-delay-or-non-receipt-issue-truly-...

https://forum.xda-developers.com/t/delayed-notification-problems-s21-ultra.4243105/page-5

0 Likes