Fairmatic Setting Error
List of errors that must be resolved for trip detection to work correctly.
Entries
User has denied location permission to the application. On Android Q and above, the user needs to grant Manifest.permission.ACCESS_BACKGROUND_LOCATION in addition to Manifest.permission.ACCESS_FINE_LOCATION.
User has denied activity recognition permission to the application. This is returned on devices running:
This will be returned on devices running on Android 12 and above when the user has set the location accuracy for the application as "Approximate" (which provides the location access accuracy corresponding to Manifest.permission.ACCESS_COARSE_LOCATION). Fairmatic SDK needs the location access accuracy for the application to be set as "Precise" (which provides the location accuracy corresponding to Manifest.permission.ACCESS_FINE_LOCATION) to operate. Hence, it is recommended to not manually downgrade the location access accuracy.
This will be returned on devices running on Android versions 4.4 to 8.1 when user has not set location mode as Settings.Secure (https://developer.android.com/reference/android/provider/Settings.Secure.html?is-external=true#LOCATION_MODE_HIGH_ACCURACY). In android versions 4.4 to Android 8.1, a user can choose location mode based on accuracy, speed, and battery use.
User has enabled background restrictions on the application. This error is returned on devices running Android P and onwards.
This is battery optimization warning. This warning is thrown when the application is not whitelisted from battery optimization.
This is notifications disabled warning. This warning is thrown when the application has disabled notifications.
This is a warning thrown when the device does not have the required Google play services version
This warning is thrown when there is an internal error
Inherited properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.