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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

CoreLocation.requestAlwaysAuthorization

Requests permission to use location services whenever the app is running.

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

Parameters

none

Result

Returns OK or error.

Description

Requests permission to use location services whenever the app is running.
When the current authorization status is notDetermined, this method runs asynchronously and prompts the user to grant permission to the app to use location services. The user prompt contains the text from the NSLocationAlwaysUsageDescription key in your app’s Info.plist file, and the presence of that key is required when calling this method.

See also
https://developer.apple.com/documentation/corelocation/cllocationmanager/1620551-requestalwaysauthorization

See also

This function checks for a license.

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


CoreLocation.purpose - CoreLocation.requestLocation

💬 Ask a question or report a problem