RadarTrackingOptions is a configuration class used to control background tracking behavior. It provides fine-grained control over location update intervals, accuracy, sync behavior, and iOS location services.
Properties
Determines the desired location update interval in seconds when stopped. Use
0 to shut down when stopped.Location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or Wi-Fi disabled.
Determines the desired location update interval in seconds when moving.
Location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or Wi-Fi disabled.
Determines the desired sync interval in seconds.
Determines the desired accuracy of location updates.Values:
RadarTrackingOptionsDesiredAccuracyHigh- UseskCLLocationAccuracyBestRadarTrackingOptionsDesiredAccuracyMedium- UseskCLLocationAccuracyHundredMeters(default)RadarTrackingOptionsDesiredAccuracyLow- UseskCLLocationAccuracyKilometer
With
stopDistance, determines the duration in seconds after which the device is considered stopped.With
stopDuration, determines the distance in meters within which the device is considered stopped.Determines when to start tracking. Use
nil to start tracking when startTracking is called.Determines when to stop tracking. Use
nil to track until stopTracking is called.Determines which failed location updates to replay to the server.Values:
RadarTrackingOptionsReplayStops- Replays failed stopsRadarTrackingOptionsReplayNone- Replays no failed location updatesRadarTrackingOptionsReplayAll- Replays all failed location updates
Determines which location updates to sync to the server.Values:
RadarTrackingOptionsSyncAll- Syncs all location updates to the serverRadarTrackingOptionsSyncStopsAndExits- Syncs only stops and exits to the serverRadarTrackingOptionsSyncNone- Syncs no location updates to the server
Determines whether the flashing blue status bar is shown when tracking.See Apple’s documentation for more details.
Determines whether to use the iOS region monitoring service (geofencing) to create a client geofence around the device’s current location when stopped.See Apple’s documentation on region monitoring for more details.
Determines the radius in meters of the client geofence around the device’s current location when stopped.
Determines whether to use the iOS region monitoring service (geofencing) to create a client geofence around the device’s current location when moving.See Apple’s documentation on region monitoring for more details.
Determines the radius in meters of the client geofence around the device’s current location when moving.
Determines whether to sync nearby geofences from the server to the client to improve responsiveness.
Determines whether to use the iOS visit monitoring service.See Apple’s documentation on visit monitoring for more details.
Determines whether to use the iOS significant location change service.See Apple’s documentation on significant location changes for more details.
Determines whether to monitor beacons.
Determines whether to use indoor scanning.
Determines whether to use the iOS motion activity service.
Determines whether to use the iOS pressure service.
Preset Configurations
Radar provides three preset tracking configurations optimized for common use cases.presetContinuous
desiredStoppedUpdateInterval: 30 secondsdesiredMovingUpdateInterval: 30 secondsdesiredSyncInterval: 20 secondsdesiredAccuracy: HighstopDuration: 140 secondsstopDistance: 70 meterssyncLocations: Allreplay: NoneshowBlueBar: YESuseStoppedGeofence: NOuseMovingGeofence: NOsyncGeofences: YESuseVisits: NOuseSignificantLocationChanges: NO
presetResponsive
location background mode.
Location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or Wi-Fi disabled.
desiredStoppedUpdateInterval: 0 seconds (shut down when stopped)desiredMovingUpdateInterval: 150 secondsdesiredSyncInterval: 20 secondsdesiredAccuracy: MediumstopDuration: 140 secondsstopDistance: 70 meterssyncLocations: Allreplay: StopsshowBlueBar: NOuseStoppedGeofence: YES (100m radius)useMovingGeofence: YES (100m radius)syncGeofences: YESuseVisits: YESuseSignificantLocationChanges: YES
presetEfficient
Location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or Wi-Fi disabled.
desiredStoppedUpdateInterval: 0 secondsdesiredMovingUpdateInterval: 0 secondsdesiredSyncInterval: 0 secondsdesiredAccuracy: MediumstopDuration: 0 secondsstopDistance: 0 meterssyncLocations: Allreplay: StopsshowBlueBar: NOuseStoppedGeofence: NOuseMovingGeofence: NOsyncGeofences: YESuseVisits: YESuseSignificantLocationChanges: NO
Class Methods
trackingOptionsFromDictionary
RadarTrackingOptions instance from a dictionary.
A dictionary containing tracking options configuration.
RadarTrackingOptions instance, or nil if the dictionary is invalid.