Geofencing
Geofencing is a very battery efficient setup for most background applications.
While similar to GPS listeners, it differs by operating in a non-immediate, non-precise way for dealing with entry/exit into a specified area.
Features
Section titled “Features”- Fallback to standard GPS when Google Play Services is not available (please make sure to read GPS documentation for additional setup)
Creating a Background Listener (Delegate)
Section titled “Creating a Background Listener (Delegate)”public class MyGeofenceDelegate : Shiny.Locations.IGeofenceDelegate{ public Task OnStatusChanged(GeofenceState newStatus, GeofenceRegion region) { // do something here - iOS only gives you about 4 seconds to finish (plus whatever it took to initialize to get here) }}