Currently able to attach an image to the MSMessage
.
Also setting the url of MSMessage
using MSMessage.url
as below.
However when the recipient taps on the message, the URL does not open in Safari browser. Instead the App store opens up.
// Appearance of message
let layout = MSMessageTemplateLayout()
layout.caption = "Welcome to this URL"
layout.image = UIImage(named: "sample.png")
let message = MSMessage()
message.layout = layout
let urlString = "https://herokuapp.com/#abd625fc1af2"
message.url = URL(string: urlString)
activeConversation?.insert(message, completionHandler: nil)