<doc>
	<legacy_id></legacy_id>
	<name>mobileLocationAuthorizationStatus</name>
	<type>function</type>

	<syntax>
		<example>mobileLocationAuthorizationStatus()</example>
	</syntax>

	<synonyms>
		<synonym>iphoneLocationAuthorizationStatus()</synonym>
	</synonyms>

	<summary>Returns the current location authorization status of the calling aplication.</summary>

	<examples>
<example><p>put mobileLocationAuthorizationStatus() into tStatus</p><p>if tStatus is "denied" then</p><p>   answer "The app cannot access your location"</p><p>end if</p></example>
	</examples>

	<history>
		<introduced version="6.6.4">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		<changed version=""></changed>
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<ios/>
	</platforms>

	<classes>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
		<category>Sensors</category>
	</classification>

	<references>
		<function tag="mobileSensorReading">mobileSensorReading function</function>
		<function tag="mobileCurrentLocation">mobileCurrentLocation function</function>
		<command tag="mobileStartTrackingSensor">mobileStartTrackingSensor command</command>
		<command tag="mobileStopTrackingSensor">mobileStopTrackingSensor command</command>
		<message tag="locationChanged">locationChanged message</message>
		<message tag="trackingError">trackingError message</message>
	</references>

	<description>
	<overview>Use the <b>mobileLocationAuthorizationStatus</b> function to find the current location authorization status of the calling application. </overview>

		<parameters>
		</parameters>

	<value>The <b>mobileLocationAuthorizationStatus</b> function returns one of the following strings:<p>&#9;* notDetermined - User has not yet made a choice with regards to this application.</p><p>&#9;* restricted - The application is not authorized to use location services.</p><p>&#9;* denied - User has explicitly denied authorization for this application, or location services are disabled in settings</p><p>&#9;* authorizedAlways - User has granted authorization to use their location at any time, including monitoring for regions, visits, or significant location changes.</p><p>&#9;* authorizedWhenInUse - User has granted authorization to use their location only when the app is visible to them. Authorization to use launch APIs has not been granted</p><p>&#9;</p></value>
	<comments>This function is available in iOS 8 and above.</comments>
	</description>
</doc>