Hacker News new | ask | show | jobs
by pbreit 4343 days ago
Is there a way in iOS for one app to trigger the opening of another app? I was thinking more in an alarm clock situation but perhaps also in a timer situation. For example, "start my Spotify in 1 hour".
2 comments

URL Schemes are the only way to communicate between apps. So to launch an app you'd need to know it's NSURL (for spotify it's "spotify") to build a URL and do: [[UIApplication sharedApplication] openURL:];
There are also App Extensions now, as of iOS8: https://developer.apple.com/library/prerelease/ios/documenta...
Yes, you can use app URLs like APPNAME:// or use the new iOS8 framework for inter-app communication (Extensions).