Need some help with backgrounding

Discussion in 'iOS Development' started by boopyman, Sep 12, 2010.

  1. boopyman

    boopyman Member

    Joined:
    Mar 30, 2009
    Messages:
    188
    Likes Received:
    0
    Device:
    4G iPod touch
    Hey guys,
    I'm having a little issue with multitasking. When we were still on 3.0, I needed my app to be backgrounded, as it is one of the big necessities in my app. I followed the code here (4th answer):
    http://stackoverflow.com/questions/1413154/how-to-implement-daemon-process-for-background-task-in-iphone-sdk-3-0
    This worked perfectly, and my app was able to work while the user was doing something else.
    But on 4.0, it seems Apple became smarter, because this approach doesn't work anymore; after about 10 seconds of backgrounding, the application quits.
    So I tried working with Apple's multitasking as an alternative, but I quickly discovered my app would still be suspended when it was closed, and that I couldn't have.
    Another alternative that goes along the lines of my first method is to additionally disable the watchdog timer, as this is apparently what's killing my app.
    http://sumgroup.wikispaces.com/Watchdog_Killer

    Now this is what I'm wondering; should I follow this method and build myself a toolchain, or is there any other alternative?

    Thanks in advance!
  2. boopyman

    boopyman Member

    Joined:
    Mar 30, 2009
    Messages:
    188
    Likes Received:
    0
    Device:
    4G iPod touch

Share This Page