Who is in fact localParticipantIdentifier?

181 views Asked by At

I am creating this interactive messages app.

Every time I compose a message and send to the other side and use this command:

  [messageTemplateLayout setSubcaption:[NSString stringWithFormat:@"$%@",self.activeConversation.localParticipantIdentifier.UUIDString]];

I get the other side's name.

For example, if I´m on the simulator using Kate and I send a message to John Appleseed, the message is sent with the subcaption John Appleseed and vice-versa. In other words: John Appleseed receives a message with his own name and this is true for Kate too.

Shouldn't the localParticipantIdentifier be who is sending the message?

1

There are 1 answers

4
Dean On BEST ANSWER

It seems you have come across a known issue with the iPhone simulator. There is an open radar for this issue that says that it works correctly on an actual device but not on the simulator. See this link.