I am creating an iMessage app for iOS 10 in which I would like to send some data with the layout. When the user taps on the layout that has been sent it will open the iMessage app and access the data that has also been sent. The data is a String.
Should I be using the MSMessage URL to send the data? Once the user taps on the MSMessage layout in iMessage, how do I receive the URL again?
Thank you
Yes, you would use the MSMessage.URL
to send and retrieve the data.
When the user taps on a MSMessage,
-(void)didBecomeActiveWithConversation:(MSConversation *)conversation
will be called. You can access the selected message URL through the passed MSConversation object like so
NSURL *url = conversation.selectedMessage.URL