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 = [[conversation.remoteParticipantIdentifiers firstObject] UUIDString];
at this point if I print this I get something like
myUUID = 3A00236E-606E-41BE-BD11-97658AF13434
opponentUUID = 794DC7EB-E0AF-46CD-9BF0-5B6D39CC6773
Then I make my move in the game and send to the opponent.
On the simulator I switch from "Kate" to "John Appleseed".
When the method didBecomeActiveWithConversation
triggers again, now for the other user, I grab both UUID again. This is the result:
myUUID = 3A00236E-606E-41BE-BD11-97658AF13434
opponentUUID = B4621E05-4407-443E-9526-C8F0C82753D6
What? myUUID is the same as before and my opponentUUID is completely different?? By switching users on message I was expecting to see the entries reverted. How can that be? Bug?