(CIP 6.1) (CIP 6.0) (CIP 5.1) (CIP 5.0) (CIP 4.3) (CIP 4.2) (CIP 4.1)
(CIP 6.1) (CIP 6.0) (CIP 5.1) (CIP 5.0) (CIP 4.3) (CIP 4.2) (CIP 4.1)

Location Tracking Setup (Android)

To configure device location tracking​ (Android):

  1. ​Grant location permission in operating system settings

  2. 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.

  3. 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.

  4. Configure​ pref_device_location_track=true

  5. 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" /> 
    


  6. Declare DeviceLocationTrackService in the AndroidManifest.xml:

    <service 
      android:name="com.rinami.cantara.client.android.implementation.common.service.DeviceLocationTrackService" 
      android:exported="false" /> ​