Running in background/trigger by alarm

Discussion in 'iOS Programming' started by norbjarte, Oct 11, 2008.

  1. norbjarte macrumors newbie

    Joined:
    Oct 11, 2008
    #1
    Case: Need a way to trigger a notification every X minutes (like 15, 20) to my program, which plays a notification.

    Pros: Experienced programmer
    Cons: Learning iPhone and OSX programming.

    Solution A: Run program in background? How?
    Solution B: Create a crontab simular event to trigger a event? How?

    PS: The interval (X minutes) should be able to be set from the program.

    Anyone could help point me in the right direction to look for a solution, if its possible? :)
     
  2. Pring macrumors 6502

    Joined:
    Sep 17, 2003
    #2
    Not possible at the moment. Apple will supply a push notification service later this year (hopefully, the timetable has already slipped) which would allow you to prompt the user to run the program. But you can't automatically trigger it ever X minutes, even with the push notification service.
     
  3. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    Using the SDK API's, there is no way to run any program or process in the background. And you can't access cron because it's outside your application's sandbox.

    .
     
  4. Sbrocket macrumors 65816

    Sbrocket

    Joined:
    Jun 3, 2007
    Location:
    /dev/null
    #4
    Less that and more the fact that you can't fork processes because of the sandbox's limitations.
     

Share This Page