Reputation: 53
Hello everyone and thank you if you are able to help me. I have an application that uses core data to store 'Game' Data. The main Model is made up of a few entities, one being 'Characters' and there are also relationships between entities. What I would like to do is send an invitation to a game via email (I can already send an email from within the application), however I would like to include in the email :
A means of opening the app if already on the device,
if not then a link to the app store to download,
and the specific 'character' that the host has chosen for the receiver.
When the app is opened by the receiver I would like it to add the 'Character' Object to a second Core data model. The idea of this is to have two Models. One to hold Games that are full games and purchased by hosts and a second which holds only enough information to play the game as a Character.
I hope this is possible and thank you again for any help that you may be able to provide.
Upvotes: 3
Views: 116
Reputation: 1245
If email is your preferred way to send an invitation to play - your best bet is to use a Custom Uri Scheme in your app. It should cover options 1 & 3 option 2 is no brainer - The other details you want- adding character object to the second cordite etc. - those are things that you want to program once your app opens via the 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 would also work over SMS a QR Code maybe NFC once IOS opens it up.
Upvotes: 2