Check the Location Permissions
Last updated
Last updated
This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to https://docs.sentiance.com.
To get current location permission status, use the getSdkStatus
method ( / ).
In the above example, getSdkStatus
returns an SDK status object ( / ) which has an isLocationPermGranted
field, indicating if the correct permission has been granted by the user to allow SDK detections.
To be notified of SDK status changes such as permission changes, quota updates, and the detection or SDK start status, you can set up an SDK status listener on the SDK's config object as follows: