Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

CoreLocation.authorizationStatus

Returns the app’s authorization status for using location services.

Component Version macOS Windows Linux Server iOS SDK
CoreLocation 9.1 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "CoreLocation.authorizationStatus" )

Parameters

none

Result

Returns status or error.

Description

Returns the app’s authorization status for using location services.
The authorization status of a given app is managed by the system and determined by several factors. Apps must be explicitly authorized to use location services by the user and location services must themselves currently be enabled for the system. A request for user authorization is displayed automatically when your app first attempts to use location services.

notDeterminedThe user has not yet made a choice regarding whether this app can use location services.
restrictedThis app is not authorized to use location services.
deniedThe user explicitly denied the use of location services for this app or location services are currently disabled in Settings.
authorizedAlwaysThis app is authorized to start location services at any time.
authorizedWhenInUseThis app is authorized to start most location services while running in the foreground.

Created 17th February 2019, last changed 17th February 2019


CoreLocation.altitude - CoreLocation.course

Feedback: Report problem or ask question.