iOS Message Objects used by Message Extensions.
Questions tagged [msmessage]
38 questions
2
votes
3 answers
Send and Open data in iMessage app
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…

Tom Coomer
- 6,227
- 12
- 45
- 82
1
vote
1 answer
Xcode: didTransition to Won't Run in iMessage Extension
I am making an iMessage extension that uses the didTransition(to:). However, the function won't run when I resize the iMessage extension in the simulator. Am I doing something wrong?
This is the code I have:
import UIKit
import Messages
class…
user14210589
1
vote
1 answer
MSMessageLiveLayout freeze/crash in transcript when info.plist contains privacy request
I have an iMessage extension using MSMessageLiveLayout for messages. I want the extension to access microphone. Adding in info.plist "Privacy - Microphone Usage Description" with correct value causes the liveMessages in transcript to freeze/crash…

M.B.
- 15
- 5
1
vote
1 answer
Detecting user interaction in iMessage extension
I know that with an iMessage extension, a message can not be sent unless the app detects user interaction as per Apple's policy to prevent automated messages.
However, I have a screenshot detector that automatically sends a message when the user…

Levi K
- 573
- 1
- 4
- 23
1
vote
1 answer
How to embed a URL on a MSMessage?
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.
//…

as diu
- 1,010
- 15
- 31
1
vote
1 answer
To send a message using MSMessage from the Second View of an iMessage Extension App
I have designed an iMessage extension app in which the initial/first view has a button "enter" and when we click "enter" it opens a second view which has one more button "send". I want to send a message using MSMessage when I click "send". My code…

user9979855
- 23
- 4
1
vote
2 answers
Sending multiple messages in iMessage using Swift
I'm writing an app for iMessage and would like to automatically send the message when the user taps on the imessage app screen.
The message is composed of a map of an address of a location.
Originally, I had tried using the message.url to contain…

Bevan
- 179
- 1
- 12
1
vote
1 answer
MSMessage message.senderParticipantIdentifier.uuidString not converting to name
I'm in the final stages of an iMessage extension and have one last lingering issue that I thought was a problem with the simulator but now I have the app working on test devices it's not resolved itself.
When I create a message caption the following…

SimonBarker
- 1,384
- 2
- 16
- 31
1
vote
0 answers
selectedMessage() is not triggered on message select in simulator with Message Extension
I am attempting to trigger a message content specific segue on message select with my messages extension. I am using the following function override:
override func didSelect(_ message: MSMessage, conversation: MSConversation) {
…

thexande
- 1,645
- 16
- 23
1
vote
1 answer
Set tag or unique identifier for MSMessage
It is possible to set a unique id and or tag for a MSMessage instance? My current app is based on data fetched from a server using an integer id as an identifier. When a previous message is selected I want to modify the view accordingly by fetching…

kye
- 2,166
- 3
- 27
- 41
1
vote
1 answer
How to make an iMessage app that only shows the current message?
I am making a iMessage game. I want only the current iMessage session to show and all of the previous ones to be minimized. For a turn based game I don't want users to go back and see all the previous moves.
How might this be done with iOS 10 and…

quemeful
- 9,542
- 4
- 60
- 69
1
vote
1 answer
Unique MSConversation.localParticipantIdentifier in iOS simulator
When testing iMessage applications in the iOS simulator, retrieving the MSConversation.localParticipantIdentifier in the two default conversation threads (Kate Bell, John Appleseed) returns the same NSUUID string because we are still on the "same…

ansonl
- 786
- 1
- 13
- 34
1
vote
1 answer
Strange Thing Going on with UUID on messages extension
I am creating this messages extension that is a game.
When I receive a conversation on didBecomeActiveWithConversation I grab my UUID and the opponent's UUID, for example:
myUUID = [conversation.localParticipantIdentifier UUIDString];
opponentUUID =…

Duck
- 34,902
- 47
- 248
- 470
0
votes
0 answers
Attaching an audio file into MSMessage
I want to attach an audio file into a user's iMessage window. My code is quite simple:
func chooseSound(tapName: String) {
if let ac = activeConversation {
if let urlPath = Bundle.main.url(forResource: "bell", withExtension: "mp3") {
…

coco
- 2,998
- 1
- 35
- 58
0
votes
0 answers
Transparent image in iMessage MessageExtension iOS
I'm working on a MessageExtension app and trying to send transparent images through imessage. However when I add the image to the message, the image loses its background transparency and is filled in with a solid white. is there a way to mitigate…

Chris Rudel
- 11
- 1