SimonBarker
SimonBarker

Reputation: 1424

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 code works to change the partipipantIdentifer into their name:

layout.caption = "$\(conversation.localParticipantIdentifier.uuidString)"

However when viewing the message at the recipient's end this code:

self.titleLabel.text = "$\(self.message!.senderParticipantIdentifier.uuidString) sent:"

doesn't display the senders name it just displays their UUID string. What am I missing to convert the sender UUID to their name? Does anyone know if this is this possible or not?

Thanks

Upvotes: 1

Views: 366

Answers (1)

Dave Weston
Dave Weston

Reputation: 6635

The "$(participantIdentifier)" syntax only works within MSMessageLayout. When setting the UILabel.text you can only get the uuid.

Upvotes: 2

Related Questions