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!