Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Android service stops working when phone locked

$
0
0

I have an application which starts a service. The service has a timer and pops a notification every 30 seconds. I notice the following behavior:

if the screen is on the notifications are shown ok (even if the app is in background)
if the screen is off (by power button or by itself) the notifications won't show
if the screen is off but I have the debugging running the notifications appear
How can I make the service run with the screen off.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>