Commit 12cc90ad authored by Chris Scott's avatar Chris Scott

Merge pull request #26 from christocracy/application_will_terminate

Update CDVBackgroundGeoLocation.m
parents 4a6d7387 85d5dde6
......@@ -771,11 +771,7 @@
* Might be desirable in certain apps.
*/
- (void)applicationWillTerminate:(UIApplication *)application {
[locationManager stopMonitoringSignificantLocationChanges];
[locationManager stopUpdatingLocation];
if (stationaryRegion != nil) {
[locationManager stopMonitoringForRegion:stationaryRegion];
}
}
- (void)dealloc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment