Executing code while the app is in the background.

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

  1. Soulstorm macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    #1
    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

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    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

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #3
    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