Can i send location updates to my server in background from iOS4?. I want to get users location changes and post it to a server using a web-service call. Main question here is, is it possible to call a web-service or http-post while app is in background?
Share
Absolutely, and you may want to review this earlier thread when I asked the same question – credit due to @RedBlueThing for providing the key information.
I’ve written this up as an example on our blog as well. The key to this working is
beginBackgroundTaskWithExpirationHandler:without that you won’t get reliable results as it will perhaps work some of the time, but not others.