-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
Hi
I am trying to user your code in my app, and found our few problems:
- I changed the main timer from 1 minute to 5 mintes, delay timer stays at 10s. When you start app, it update locations and finish after 10 seconds. Then put app to background, you it will start updating location again - and will update them in background for more than 4 minutes, when main timer reset again. I think you should not call [locationManager startUpdatingLocation] in -applicationEnterBackground. Is this a bug or you wanted it this way for some reason? Maybe it was just not that obvious with 1 minute timer, but with longer timer it is a problem. If I set timer for 1 hour, it would constantly update location for one hour after going to background.
- Wouldn't it be better if instead of creating separate timer for updateToServer, just put call to [self updateToServer] in -stopLocationDelayBy10Seconds ? At this point you always has the most current user location.
Metadata
Metadata
Assignees
Labels
No labels