Hi Guys,
I’m trying to wake up a Samsung Tab A8 tablet via notifications sending the “command_screen_on” to the tablet with ttl: 0 and priority: high. The companion app got background access, does not use the persistent connection and the android settings for the app are all the default value.
This way if I send the screen on command to the app the tablet turns on immediately if it the display was turned off within 5-10 minutes. If the tablet is sleeping for more than 10 minutes then sometimes it takes 20-60 seconds to turn the screen on, but sometimes the command get lost and the screen never turns on.
I already tried to use the persistent connection, but if it was enabled and the tablet was in sleep, the screen never turned on.
My goal is to create a doorbell function: if a button got pressed, the tablet should turn on immediately - regardless when it was turned off - and play some sounds and open a camera stream.
Good site for powersaving functions is always Samsung | Don’t kill my app! . For my s21+ it were 2 or three options to disable, don’t remember exactly.
Persistent connection works, it looks like the notification arrives immediately. However it make a really high battery drain, but it looks like an acceptable compromise.
Yes, it isn’t actualised anymore, but it gives you a hint what to search for. Mainly you have to disable powersaving in the app, and adaptive battery and background usage limits is on the same place.
The only one i cannot find anymore is disabling the auto optimizations, this one is found somewhere else in 12 or 13.