Auto run an app based on some event.

Discussion in 'Public Game Developers Forum' started by wyattbiker, Feb 20, 2009.

  1. wyattbiker

    wyattbiker Member

    Feb 19, 2009
    6
    0
    0
    Is there some way on the iPhone to trigger an auto-run of an app based on some external event such as socket/port monitoring?

    Sorry if this was answered by someone else. I did a search and cant find anything.
     
  2. dannys95

    dannys95 Well-Known Member

    Sep 29, 2008
    5,252
    6
    0
    Earth
    I dont think so.
     
  3. lithiastudios

    lithiastudios Well-Known Member

    Jan 9, 2009
    101
    0
    0
    Generally that would require a background process to run, which Apple doesn't allow in the SDK.

    Only way I can think of to auto-run an app that Apple actually allows is to register a protocol handler for your app. So you can specify that any time an "xyz://" link is clicked in Safari, your app is launched. But that would require the user to have Safari running, or maybe a UIWebview inside another iPhone app.

    http://www.mobileorchard.com/apple-approved-iphone-inter-process-communication/
     
  4. mrsteveman1

    mrsteveman1 Well-Known Member

    Nov 20, 2008
    63
    0
    0
    Well, if we're playing inside Apples sandbox then probably not.

    But jailbroken, the iPhone does have launchd, and at least on desktop OS X launchd appears to be capable of launching applications based on system events.
     

Share This Page