SDK Configuration (Android)
The first step is to configure the Android SDK.
Last updated
The first step is to configure the Android SDK.
Last updated
Roam SDKs reject Mock Locations on the device by default.
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
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.
Parameter
Description
STATE
RoamTrackingMode.AppState.FOREGROUND (or)
RoamTrackingMode.AppState.BACKGROUND (or)
RoamTrackingMode.AppState.ALWAYS_ON
Parameter
Description
Boolean
true (default) -- Offline location enabled. false -- Offline location disabled.
Parameter
Description
Boolean
false (default) -- Mock location disabled.
true -- Mock location enabled