FairmaticSettingError

List of errors that must be resolved for trip detection to work correctly.

Entries

Link copied to clipboard

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.

Link copied to clipboard

User has denied activity recognition permission to the application. This is returned on devices running:

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

User has enabled background restrictions on the application. This error is returned on devices running Android P and onwards.

Link copied to clipboard

This is battery optimization warning. This warning is thrown when the application is not whitelisted from battery optimization.

Link copied to clipboard

This is notifications disabled warning. This warning is thrown when the application has disabled notifications.

Link copied to clipboard

This is a warning thrown when the device does not have the required Google play services version

Link copied to clipboard

This warning is thrown when there is an internal error

Types

Link copied to clipboard
object Convertor

Inherited properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.