Sign In Register

How can we help you today?

Start a new topic

Can't Receive ChallengeIssuedMessage


I'm trying to create a 1v1 challenge after MatchFoundMessage.

In MatchFoundMessage I'm making challengeRequest to opponent

MatchFoundMessage.Listener = (message) =>

 if (participants.ElementAt(0).Id == GameManager.userId)
 var opponentId = new List<string>();
 new CreateChallengeRequest()
 .Send((challengeRequestResponse) =>



But other player doesn't get ChallengeIssuedMessage. Am I doing something wrong? What is the problem with this?


Ramazan YILDIZ

1 Comment

Hi Ramazan,

Have you tested this in the Test Harness with two players ? You can have two Test Harness windows open to try this. Log in as a player that will be in the challenge in each one, match them and then see if ChallengeIssuedMessage is sent. You would need to be listening for hat message in Unity. Also I've noticed you are sending the CreateChallengeRequest on the client side when the MatchFoundMessage is received. Is that correct ? Instead of this you could use a SparkRequest in the MatchFoundMessage Cloud Code to create your challenge with the other player. You can read about how to do this here. Try that and if you have any further questions just let us know.



Login to post a comment