Skip to main content

iOS Permissions

Permissions

The Fairmatic SDK needs the following permissions for its products to function smoothly:

LegendMeaning
The permission is vital for this product to function.
Lack of this permission may interfere with the product's functioning.
The permission is not needed for the product to function.
ProductLocationActivity
Trip Detection
Trip Mileage
Collision Detection
Driving Behavior - Hard Brake
Driving Behavior - Hard Turns
Driving Behavior - Rapid Acceleration
Driving Behavior - Overspeeding
Driving Behavior - Phone Use
warning

Many SDK features are dependent on trip detection; therefore, Location Permission is needed for every feature.

SDK Errors

The Fairmatic SDK provides the following permission errors to indicate high-priority permission needs:

ErrorDescription
Always Location AccesslocationPermissionNotAuthorized
Precise LocationlocationAccuracyAuthorizationReduced
Location DisabledlocationServiceOff
Low Power ModeLow power mode adversely affects every feature of the Fairmatic SDK.
Background App Refresh DisabledThis error does not affect Fairmatic services, but must be mandatorily provided.
Activity PermissionactivityPermissionNotAuthorized

Handling Errors

We recommend acquiring permissions during an onboarding process that clearly explains why those permissions are needed. Here, we have demonstrated how to handle the case of location permission being denied.

The onboarding process for location permission in our in-house sample app is shown below for reference.

Example for Location Onboarding

If an error is thrown after the onboarding process, a notification can indicate to the user that certain specific permission is needed. Use that notification to direct them to the correct permission screen or a screen describing why the permission is needed.

Example of a notification indicating missing permission