Converting shared URL into iMessage App content

When you share to iMessage from the Apple Music app, the URL gets turned into dynamic content as if it were shared from the iMessage App for Apple Music. Is there any way for other apps to adopt this behavior?

Replies

Apps can use the MFMessagesComposeViewController and attach an MSMessage to it in order to send an iMessage with an app's message in it. I suspect that's what you're talking about where you can, from your app, allow users to send a message which will show up as an app bubble in Messages.

Oh perfect! This works for our needs 🙂


I did notice that if you copy the URL and compose your own iMessage it also works, but that must be some magic! Try with this URL: itun.es/us/agWu-

@pdm Is there any way to supply an MSMessage to the stock UIActivityViewcontroller's Message button?

No, there is not today. A bug report would be the best path if that's something you want to see.