Check the Location Permissions
To get current location permission status, use the sdkStatus
property.
In the above example, sdkStatus
returns an SDK status object (iOS / Android) which has properties for the location permission and precision.
The user must grant the background location access permission in order for SDK detections to work. This is presented as the "always" option on iOS, and the "allow all the time" option on Android 10+ devices.
The user must also enable precise location accuracy.
To be notified of location permission changes, you can set up an SDK status listener on the SDK's config object as follows:
Last updated