Hide iMessage URL from Mac and older iOS devices

Right now I have an interactive iMessage app where the data related to a message is saved within a URL so that it can be decoded when the message is selected. On non iOS 10 devies and macOS I see an ugly http URL alongside the iMessage image. Is it possible to hide the URL from showing up but still be able to pass on data alongside the message. Any help is highly appreciated.


Thanks,

Jack.

Accepted Reply

Use a "data:..." URI instead of an HTTP one.

Replies

Use a "data:..." URI instead of an HTTP one.

Thanks pdm, that helped. :-)

pdm, is your answer more accurate than the Messages framework documentation, or am I misunderstanding the question? Looking at the Messages framework documentation: https://developer.apple.com/reference/messages/msmessage/1649739-url my understanding was that:

The URL property must use an http, https, or file scheme

The documentation should include data in that list. I've filed a bug report to get that updated. Thanks for pointing it out.