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

Stop and Resume a service on specific times

$
0
0

I am using this example to build a small app: https://github.com/xamarin/mobile-samples/tree/master/BackgroundLocationDemo

I want this service to only run between 8am to 10am (set by user in a settings dialog, so can be changed during runtime), how can I start, pause and resume such a Foreground service by specific times in Xamarin?

Since the service will be stopped/paused all other times except for between 8am-10am, will the Foreground Notification disappear during the other times? I will also need to implement the same solution for iOS.

Thanks in advance and appreciate any help!


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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