To configure device location tracking (Android):
-
Grant location permission in operating system settings
-
Define pref_device_name. This name must be a unique, valid JDE asset number.
For details of all configuration items, refer to the App Configuration Data Definitions. -
Configure pref_device_location_update_interval=300 or greater (seconds)
Note that location updates may occur less frequently when the app is running in the background.
-
Configure pref_device_location_track=true
-
Add permission declaration to the AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
-
Declare DeviceLocationTrackService in the AndroidManifest.xml:
<service android:name="com.rinami.cantara.client.android.implementation.common.service.DeviceLocationTrackService" android:exported="false" />