Our users complain that a purple arrow appears, even though the application is dead, and therefore they automatically think that it is draining its battery.
We use only a significant change in location, causing
[locationManager startMonitoringSignificantLocationChanges]
So, unless we stop a significant change in location, the magenta arrow will remain (and our users think their battery is running out).
Even if we want to stop a significant change in location when the application terminates, we cannot, because applicationWillTerminate is rarely called.
So there are 3 options:
- Leave it as it is - but users continue to complain because the apple does not distinguish between apps that use the usual place to consume battery and apps that use a significant change in location.
- Use the usual [locationManager startUpdatingLocation], so when the application terminates, monitoring also occurs. The problem is that it will actually consume users' batteries until the application is completed.
Call
(void)applicationDidEnterBackground:(UIApplication *)application { [locationManager stopMonitoringSignificantLocationChanges]; }
The problem is that we are not using location changes in the background ...
Are there any other suggestions that will allow us to do this:
- The location of the monitor while the application is the background (the magenta arrow here is OK)
- Stop location monitoring when the application is killed (the magenta arrow here is NOT OK)
- Use a significant change in location to avoid draining the user's battery.
?
thanks
source share