SDK Configuration (Android)
The first step is to configure the Android SDK.
Set Tracking in AppState
Parameter
Description
STATE
RoamTrackingMode.AppState.FOREGROUND (or)
RoamTrackingMode.AppState.BACKGROUND (or)
RoamTrackingMode.AppState.ALWAYS_ON
Offline Location Tracking
Parameter
Description
Boolean
true (default) -- Offline location enabled. false -- Offline location disabled.
Allow Mock Location
Roam SDKs reject Mock Locations on the device by default.
Parameter
Description
Boolean
false (default) -- Mock location disabled.
true -- Mock location enabled
Accuracy Engine
To enable accuracy engine for Passive, Active, and Balanced tracking
For Custom tracking modes, you can pass the desired accuracy values in integers ranging from 1 - 150m.
For disabling accuracy engine
Set Foreground Service Notification
Use setForegroundNotification
method to notify the user about location tracking in the notification bar. Set ENABLE as true to enable notification and false to disable the notification.
Last updated