sammyke007 wrote: Friday 07 February 2020 22:31
Geitje wrote: Friday 07 February 2020 21:57
I have this problem for a long time already (since Android 9). In my case may be related to Oxygen OS. Eventually I found out that disabling Android Doze does the job. Running
in an Android terminal (I made a tasker task to do this) does the job for me. From then I get notifications immediately. Battery use is only slightly more. Enabling doze can be done with the same command, ofcourse changing disable to enable.
aBjerris wrote: Friday 07 February 2020 12:30
I'm running version 0.2.187 (6509) of the app.
Since Android 10 notifications do not appear promptly while the phone is in standby. It can take 10-15 minutes before the app show a notification.
...
Exactly. I also have a Oneplus running OxygenOS and since Android Pie (9) they started killing apps agressively. Therefor my pushsafer app always warns me too late (same with Whatsapp, ...). It's only a couple of minutes later, but I don't like that. Disabling battery optimization is not enough. You need to run "dumpsys deviceidle disable" after each reboot to completely disable Doze via ADB or the way you explained with Tasker.
Thanks for the prompt responses.
I'm not very keen on changing the battery optimization settings but I found this article:
https://firebase.google.com/docs/cloud- ... -a-message
In my understanding the FCM messages can be sent with Normal priority or High priority.
Also in case messages are sent with high priority there is a built in learning mechanism which causes the priority to be lowered in case the end user do not act on the notifications.
Anyone who knows what priority is used by Domoticz?