Search code examples
iosemail

Can it be launched from mail?


I'm working on a new app and would love to have the following feature. If the user is in Apple's Mail, they can have the option to open my app.

EDIT: The comments have pointed me to this question, which is perfect for handling attachments, which I also want to do, but I also want the user to be able to copy some text, a date or an e-mail address, and then open my app with that information in tow.

Is there an API set up whereby I can do this?


Solution

  • You can create a custom URL scheme for your app, something like app://path - this is how Facebook handles things, they have URLs like fb://profile/12345.

    http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html