High priority notification does not wake up tablet

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.

What is the best practice to do this?

You probably have more power saving features to disable. It’s a Samsung device so they have multiple things to turn off. Never just 1

Good site for powersaving functions is always Samsung | Don’t kill my app! :wink: . For my s21+ it were 2 or three options to disable, don’t remember exactly.

1 Like

Enable persistent connection too, and disable the disconnect after a while setting.

Thanks madface, the only problem is that this page goes up to Android 11 only. Samsung changed almost everything in Android 12.

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.

Yah as long as you got power going to the device constantly, persistent conn works great.