Fix notification delay on Android

TABLE OF CONTENTS
Notification delay error on Android occurs when the system cannot send notifications to your device immediately when a new event occurs on the app. Typically, the facebook, zalo, telegram, ... notifications may be delayed or not appear until you open the application.
I also have an extremely annoying case when sms messages are also delayed until the screen is unlocked.
There are many causes of notification delay on Android, including:
During use, you accidentally manipulated the notification bar by mistake because you clicked the "Turn off this app notifications" button. This causes the app to be completely blocked, not delayed.
To fix this error, follow these steps:
This can be seen as a feature, not a bug. There are apps that force you to allow background activities, especially apps that listen to music and audio when the screen is off.
Usually these applications will popup a notification to allow background activity right from the time of installation. If not, you can do it manually like below:
Note that allowing an app to run in the background can affect performance and battery life.
The "Battery Player" brothers will usually turn on all options related to battery optimization. This inadvertently causes some apps to delay notifications.
When the Adaptive Battery feature is enabled, the system learns to use and optimize battery usage by minimizing unnecessary application activity.
For example, if you usually use Facebook in the morning, but don't use it in the evening, Adaptive Battery will minimize Facebook activity in the evening to save battery.
By default, the network will always work even when the screen is off. The purpose is for applications such as Facebook, Zalo, and banking applications to promptly notify.
To check these options follow these steps:
"DOZE" mode is the hibernation mode introduced on Android Marshmallow (6.0). When in Doze mode (inactive and screen turned off), Android system reduces data sync frequency, limits network connections or app updates, and allows only priority notifications. first is displayed.
When the device is screen unlocked, the system will reactivate the full operation of applications and hardware.
This feature increases battery life and reduces battery consumption significantly when the device is not in use. However, for those of you using local ROMs, or custom ROMs, there is still the possibility that this feature does not work properly and causes the application to turn off notifications when Off Screen.
You can follow the steps below to disable the Doze mode feature on your Android device.
Turn off with ADB command:
adb shell dumpsys deviceidle disable
This command to turn off Doze mode.adb shell dumpsys deviceidle enable
This command to enable Doze mode.Or you can add specific apps to the white list with this command (in my case, sms notification was delayed so I added app com.android.messaging
)adb shell dumpsys deviceidle whitelist +com.android.messaging
If you "shutdown / start up" when you restart your computer, you will need to run this command again.
In case you do not have a computer, you can use "Terminal Emulator" in the Play Store to run ADB on the phone directly through "Wireless debugging".
Related Articles