Executing code while the app is in the background.

Discussion in 'iOS Programming' started by Soulstorm, Jun 28, 2011.

  1. Soulstorm macrumors 68000


    Feb 1, 2005
    I want to write an application that will download data from a server (such as mail). When it is in the background, I want it to check for available mail (and possibly download them), then sleep for another 10 minutes.

    Is this possible?
  2. firewood macrumors 604

    Jul 29, 2003
    Silicon Valley
    On stock OS iOS devices, background processing is only available to 3 types of apps (mail is not included in those 3), and for some number of minutes (currently much less than 1 hour) for all other apps.

    So basically, no.
  3. jnoxx macrumors 65816


    Dec 29, 2010
    Aartselaar // Antwerp // Belgium
    I think downloading is not allowed while app is minimilised. but U can warn them via Push Notificiation, that there indeed is something new to download, like a mail. then download it when u start the mail, in the process of starting it back up.

Share This Page