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.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

CoreLocation.requestWhenInUseAuthorization

Requests permission to use location services while the app is in the foreground.

Component Version macOS Windows Linux Server FileMaker iOS SDK
CoreLocation 9.1 No No No No Yes
MBS( "CoreLocation.requestWhenInUseAuthorization" )   More

Parameters

none

Result

Returns OK or error.

Description

Requests permission to use location services while the app is in the foreground.
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 NSLocationWhenInUseUsageDescription key in your app’s Info.plist file, and the presence of that key is required when calling this method.

See also

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


CoreLocation.requestLocation   -   CoreLocation.setDesiredAccuracy

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat