Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CoreLocation.startUpdatingLocation

Starts the generation of updates that report the user's current location.

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

Parameters

none

Description

Starts the generation of updates that report the user's current location.

This method returns immediately. Calling this method when the receiver is stopped causes it to obtain an initial location fix (which may take several seconds) and notify your script. After that, the receiver generates update events primarily when the value in the distanceFilter property is exceeded. Updates may be delivered in other situations though. For example, the receiver may send another notification if the hardware gathers a more accurate location reading.

Calling this method several times in succession does not automatically result in new events being generated. Calling stopUpdatingLocation in between, however, does cause a new initial event to be sent the next time you call this method.

Available in macOS 10.6 and later.

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 10th August 2020


CoreLocation.startUpdatingHeading - CoreLocation.stopMonitoringSignificantLocationChanges