Send a link to an object and app via ios email

Hello everyone and thank you if you can help me. I have an application that uses core data to store "Game" data. The main model consists of several entities, one of which is "Characters", and there are also relationships between entities. What I would like to do is send an invitation to the game via email (I can already send an email from the application), however I would like to include in the email:

  • A means to open an application if it is already installed on the device,

  • if not, then a link to the app store to download,

  • and a specific "character" selected by the host for the receiver.

When the receiver opens the application, I would like it to add a Character object to the second Core data model. The idea is to have two Models. One to play Games, which are complete games and are bought by hosts, and a second, which contains just enough information to play the game as a Character.

I hope this is possible and thanks again for any help you can provide.

+3


source to share


1 answer


If email is the preferred way to send a game invite - your best bet is to use a custom Uri scheme in your app. It should cover options 1 and 3, option 2 has no problem. Other details you want: adding a symbolic object to the second cordite, etc. are the things you want to program when your application is opened via a URI:

See this link for a complete tutorial: http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html



PS your URI / link will work on SMS as well, and the QR code could be NFC as soon as IOS opens it.

+2


source







All Articles