CoreLocation.startUpdatingLocation
----------------------------------

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

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreLocation](component_CoreLocation.md) | [2.7](newinversion27.md) | ✅ 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

- [CoreLocation.hasLocation](CoreLocationhasLocation.md)
- [CoreLocation.purpose](CoreLocationpurpose.md)
- [CoreLocation.setPurpose](CoreLocationsetPurpose.md)
- [CoreLocation.startUpdatingHeading](CoreLocationstartUpdatingHeading.md)
- [CoreLocation.stopUpdatingHeading](CoreLocationstopUpdatingHeading.md)
- [CoreLocation.stopUpdatingLocation](CoreLocationstopUpdatingLocation.md)

### Example Databases

- [Mac and iOS/CoreLocation/CoreLocation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/CoreLocation/CoreLocation.shtml#1ScriptAnchor_)
- [Mac and iOS/MapKit/MapView BeeExample](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/MapKit/MapView%20BeeExample.shtml#16ScriptAnchor_)

### 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)

### FileMaker Magazin

- [Ausgabe 2/2022, Seite 31](https://filemaker-magazin.de/neuigkeit/4174-Appetithappen-FMM_202202)

This function checks for a license.

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

  
[CoreLocation.startUpdatingHeading](CoreLocationstartUpdatingHeading.md) - [CoreLocation.stopMonitoringSignificantLocationChanges](CoreLocationstopMonitoringSignificantLocationChanges.md)

[HTML Version](CoreLocationstartUpdatingLocation.shtml)