You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Since the max execution time is maximum 3 minutes, the 5 minute change probably goes over it, making it never start the other tasks. Does putting the main timer to back to 1 minute fix this? Curious myself, I haven't tried it myself yet.
Hi ,voyage11, thanks for sharing ! I want to upload my locations every 200 meters to server. no matter the app is active or in background or is killed ,I can do that . but when I run your project ,and kill the app ,it could not upload the location to server ,how can I do that?thanks !
Hi
I am trying to user your code in my app, and found our few problems:
The text was updated successfully, but these errors were encountered: