Reputation: 5015
I want to stopMonitoringSignificantLocationChanges when the user is killing the app from the multitask bar (switch bar) like the Waze GPS App does.
(i also want to cancel all LocalNotifications)
the problem is, that after an application get's suspended, applicationWillTerminate doesn't get called.
Upvotes: 2
Views: 1437
Reputation: 5015
The way Waze does it is by running the NORMAL LOCATION SERVICE in background, not the "significant location service". a special option that can be set in the plist file.
there is no way to close the Low Power mode of location services - "Significant location service" when the user kills the app, because it was not intended to be used this way.
I guess I will simply have to follow apple's standards using significant location service.
Upvotes: 1
Reputation: 4080
did you have a look at this post: Behaviour for significant change location API when terminated/suspended?
Lots of interesting things in it. In particular, you should stopMonitoringSignificantLocationChanges on entering background and register for significant location changes with a Service
Upvotes: 0