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 device".
To implement a turn based app, I am passing the localParticipantIdentifier
with the URL data to keep track of the participants' turns.
- Person 1 would pass his ID in the message to Person
- Person 2 would compare passed ID to her own to determine if she made the last turn.
Is there a way to simulate a unique localParticipantIdentifier
between the two test conversations on the iOS 10 simulator? Besides hardcoding the "turn" info for debugging, I cannot think of a way to simulate this real world condition. Thanks.
Note: I do not want to use MSMessage.senderparticipantidentifier
because the sender does not necessarily determine who made the turn (ex: user sends a message that updates the app state but is NOT a "turn", 3+ person conversation thread, etc).