Permissions
Permissions
DriveMotion SDK initialize()
is no longer required any permissions, but the following permissions which must implement it's dynamic permission request based on Android version before calling startDrive()
or startTripDetection()
. Which means you can use all Analytics APIs before granted permissions or OptIn.
Minimum Required Permissions
These are the minimum location permissions which must be granted before calling startDrive()
or startTripDetection()
.
Warning
You will receive an DriveMotionException if the startDrive()
or startTripDetection()
was called before permissions are granted, please check the exception message and perform subsequent operations according to the message content.
For the purpose of obtaining location information, identify and record trips (since 1.0.0):
1 2 |
|
For use DriveMotion SDK with AUTO
detection mode, the background location permission is also required, please guide the user to change application's location access permission to "Allow all the time":
1 |
|
Fully Functionality Required Permissions and Settings
These permissions and settings are necessary to fully use the SDK functions. It is recommended to grant all the following permissions and guide to settings.
For the purpose of get phone state and detect phone call events:
1 |
|
For the purpose of ACTIVITY_RECOGNITION and physical activity with AUTO
detection mode:
1 2 |
|
For the purpose of use battery in background without restrictions, please guide the user to go to "Settings - Battery Usage" and select "Unrestricted" or "Don't optimize" based on Android version.