How do you debug missing/delayed notification on Android?

Hi,

I would like to gather tricks and tips on how to even start debugging a delayed undelivered notifications on Android phones.

I’ve recently obtained Samsung S21 phone and found out it has issues with notifications.

I’ve even turned all the battery optimization, app sleeping off but to no avail.

I’ve not yet observed much delays on LTE/5G networks cause I mostly use WiFi at home. I’ve tested many android phones yet the only one that has issues with notification being never delivered is the crappy Samsung S21.

Usually when toggling network, all the notification starts to arrive.

Some notifications do arrive early cca 10mins delay but some like “Signal messages” tend to be delayed by several hours.

#MyNextPhoneWontBeSamsung

So far I’ve found is to adb shell dumpsys deviceidle disable DOZE completely after every phone reboot. Will test that but can’t bet the solution in a long run.