ios4 - Performing background task in an app on iphone -



ios4 - Performing background task in an app on iphone -

i want app poll server updates , download them when app running in background. how can accomplish this. can tell me start from?

any help appreciated.

generally, apple wants utilize push, not pull, because conserves battery life. however, if want go polling, there things into. apple documentation describes background tasks in depth here. (note may need registered developer see it. sounds though.) particularly, want utilize these methods:

applicationwillresignactive:

applicationdidenterbackground:

applicationwillenterforeground:

beginbackgroundtaskwithexpirationhandler:

ios4

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -