Remote SDK Configuration
#
Remote SDK ConfigurationStarting in SDK versions 3.16.0
, the SDK can be remotely configured through the dashboard. Configurations are targeted by OS and environment. With these configuration options, a typical tracking implementation requires only calling Radar.initialize()
and, optionally, Radar.setUserId()
.
#
Track once on initializeWhen enabled, the SDK will automatically perform a Radar.trackOnce()
call when the app is launched or foregrounded.
#
Start tracking on initializeWhen enabled, the SDK will automatically start tracking with Radar.startTracking()
when the app is launched.
#
Log levelSet the SDK log level. Overrides any log level set client side.
#
Remotely set tracking optionsYou can remotely set SDK tracking options with either the default presets or a custom configuration. Remotely setting tracking options overrides any client-side specified tracking options.
In addition to the general tracking options, on-trip tracking options apply when a user is on a trip and in-geofence tracking options allow you to dictate different tracking options for when users are in geofences with the tags specified.
#
Custom tracking optionsCustom configurations should declare all tracking options in JSON. Example custom tracking options are below.
- iOS
- Android
{ "desiredStoppedUpdateInterval": 3600, "desiredMovingUpdateInterval": 150, "desiredSyncInterval": 10, "desiredAccuracy": "high", "stopDuration": 140, "stopDistance": 70, "sync": "all", "replay": "none", "showBlueBar": false, "useStoppedGeofence": true, "stoppedGeofenceRadius": 100, "useMovingGeofence": true, "movingGeofenceRadius": 200, "syncGeofences": true, "useVisits": true, "useSignificantLocationChanges": true, "beacons": false}
{ "desiredStoppedUpdateInterval": 3600, "fastestStoppedUpdateInterval": 150, "desiredMovingUpdateInterval": 150, "fastestMovingUpdateInterval": 20, "desiredSyncInterval": 10, "desiredAccuracy": 2, "stopDuration": 140, "stopDistance": 70, "sync": 2, "replay": 0, "useStoppedGeofence": true, "stoppedGeofenceRadius": 100, "useMovingGeofence": true, "movingGeofenceRadius": 200, "syncGeofences": true, "syncGeofencesLimit": 10, "beacons": true, "foregroundServiceEnabled": false}