CoreLocation.authorizationStatus
--------------------------------

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

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreLocation](component_CoreLocation.md) | [9.1](newinversion91.md) | ✅ 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.  
  
| notDetermined | The user has not yet made a choice regarding whether this app can use location services. |
|---|---|
| restricted | This app is not authorized to use location services. |
| denied | The user explicitly denied the use of location services for this app or location services are currently disabled in Settings. |
| authorizedAlways | This app is authorized to start location services at any time. |
| authorizedWhenInUse | This app is authorized to start most location services while running in the foreground. |

### Blog Entries

- [MBS Plugin Advent calendar: 8 - Determine your own position](https://www.mbsplugins.de/archive/2023-12-08/MBS_Plugin_Advent_calendar_8_-/monkeybreadsoftware_blog_filemaker)
- [macOS Privacy and FileMaker](https://www.mbsplugins.de/archive/2020-08-11/macOS_Privacy_and_FileMaker/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[CoreLocation.altitude](CoreLocationaltitude.md) - [CoreLocation.course](CoreLocationcourse.md)

[HTML Version](CoreLocationauthorizationStatus.shtml)