[iOS 14+]
iOS 14 has introduced a new [Precise: On]
switch on the location authorization dialog allowing users to disable high-accuracy location.
This attribute shows the state of that switch:
true
When device location-services are enabled.
true
if GPS geolocation provider is available.
true
if network geolocation provider is available.
Authorization status of location-services. For iOS, this will tell you if the user has enabled "Always" or "When in Use" authorization.
Name | Platform |
---|---|
AUTHORIZATION_STATUS_NOT_DETERMINED | iOS only |
AUTHORIZATION_STATUS_RESTRICTED | iOS only |
AUTHORIZATION_STATUS_DENIED | iOS & Android |
AUTHORIZATION_STATUS_ALWAYS | iOS & Android |
AUTHORIZATION_STATUS_WHEN_IN_USE | iOS only |
status
== AUTHORIZATION_STATUS_ALWAYS, otherwise AUTHORIZATION_STATUS_DENIED.Generated using TypeDoc
The event-object provided to BackgroundGeolocation.onProviderChange