CoreLocation.stopUpdatingLocation
---------------------------------

Stops the generation of location updates.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreLocation](component_CoreLocation.md) | [2.7](newinversion27.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "CoreLocation.stopUpdatingLocation" ) ### Parameters

none

### Result

Returns "OK" or error.

### Description

Stops the generation of location updates.  
  
You should call this method whenever your code no longer needs to receive location-related events. Disabling event delivery gives the receiver the option of disabling the appropriate hardware (and thereby saving power) when no clients need location data. You can always restart the generation of location updates by calling the [CoreLocation.startUpdatingLocation](CoreLocationstartUpdatingLocation.md) method again.  
### See also

- [CoreLocation.startUpdatingHeading](CoreLocationstartUpdatingHeading.md)
- [CoreLocation.startUpdatingLocation](CoreLocationstartUpdatingLocation.md)
- [CoreLocation.stopUpdatingHeading](CoreLocationstopUpdatingHeading.md)

### Example Databases

- [Mac and iOS/CoreLocation/CoreLocation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/CoreLocation/CoreLocation.shtml#5ScriptAnchor_)
- [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)

This function checks for a license.

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

  
[CoreLocation.stopUpdatingHeading](CoreLocationstopUpdatingHeading.md) - [CoreLocation.timestamp](CoreLocationtimestamp.md)

[HTML Version](CoreLocationstopUpdatingLocation.shtml)