Possible Duplicate:
Alternative to startMonitoringSignificantLocationChanges?
I’m developing an app where I need to call a web service whenever the user’s location has changed by 3 kilometers. It needs to work when the app is closed (not in the background, but closed).
I’ve tried the startMonitoringSignificantLocationChanges method but it’s too inaccurate, as it triggers when the user has moved from one network cell to another (as I understood when i was searching).
And as far as I know, only the startMonitoringForRegion and the startMonitoringSignificantLocationChanges methods will relaunch the application to the background to perform some code when the location has changed (or entered/exited a region).
Any solution on how to overcome this issue?
OK,
I’ve solved this problem by doing the following.
and so on…
there might be some overlaps in the regions but it will still do the work.
if anyone has a better solution please share it. 🙂