View Full Version : Auto run an app based on some event.
wyattbiker
02-19-2009, 06:39 PM
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.
dannys95
02-19-2009, 06:48 PM
I dont think so.
lithiastudios
02-19-2009, 06:53 PM
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-approved-iphone-inter-process-communication/
mrsteveman1
02-19-2009, 10:39 PM
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.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.