Running tasks when an app is backgrounded

JohnLivermoreJohnLivermore USMember ✭✭

This is in regards to a Xamarin Forms project, but the iOS flavor of the app.

We have a task that needs to run every minute when our app is running in the foreground or background. It works great in the foreground, but when the app is backgrounded, the service pauses until the app comes to the foreground again.

Is it possible to continue to run a thread even after the app is backgrounded?

And, I am not referring to background app refreshes. We are trying to use the Xamarin.Essentials Geolocation class to get current GPS points, but it only runs when queried (doesn't raise an event when a GPS event occurs), so our thread queries the Geolocation library for updates. We need this to continue to run even when the app is backgrounded.

Best Answers

Answers

Sign In or Register to comment.