★ TouchArcade needs your help. Click here to support us on Patreon.

Auto run an app based on some event.

02-19-2009, 07:39 PM
#1
Joined: Feb 2009
Posts: 6
Auto run an app based on some event.

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.
02-19-2009, 07:48 PM
#2
Joined: Sep 2008
Location: Earth
Posts: 5,252
I dont think so.
02-19-2009, 07:53 PM
#3
Quote:
Originally Posted by wyattbiker View Post
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.
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-a...communication/
02-19-2009, 11:39 PM
#4
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.