Reputation: 956
Is it possible to "suspend" the cllocationmanager while in the background?
I'm trying to stop the manager then restart it at a specific time all while in the background. Is this possible? I tried stopping the manager and starting a nstimer, but it doesn't work because nstimer does not run while in the background.
My objective is to have the manager run during certain time intervals, "suspend" during certain time intervals, and start after the suspend time is up in order to preserve battery life.
Thanks for the help!
Upvotes: 3
Views: 689
Reputation: 8356
The short answer is: No.
The long answer is: Apple has thought of that and has a solution for you.
You should read about App States and Multitasking and look for "Tracking the User’s Location" subtitle.
Upvotes: 2