I built an application that need to show an activity at a specific time even if the phone is sleeping. It worked fine with my last phone Galaxy J5 Android 9 but not now with the new A51.
Something goes better if I change the sdk target to 26 instead of 28, but it works if the phone is just gone in standby and not when in deep sleep.
I schedule a service that run properly, this service put the phonewakestate to KeepAlive and then starts an activity with the known SetShowWhenLocked routine but now the activity doesn't starts.
I'm getting mad! Does anyone have a solution?
Thanks.
Something goes better if I change the sdk target to 26 instead of 28, but it works if the phone is just gone in standby and not when in deep sleep.
I schedule a service that run properly, this service put the phonewakestate to KeepAlive and then starts an activity with the known SetShowWhenLocked routine but now the activity doesn't starts.
I'm getting mad! Does anyone have a solution?
Thanks.