@Paul-Winterhalder Thank you. Just one question. What is the topic variable in Firebase docs in the link you sent?
immortal.ray.dev
Posts
-
-
@Paul-Winterhalder The users can be offline. One user plays their turn and exits the game. After the opponent plays their turn, the offline user should receive push notification to launch the game and play their turn.
RTT in enabled and works as expected. When both users are online, the match status is updated correctly. I need the push notification sent when the offline user has to play their turn. The docs were helpful but I'm a little lost on how to enable it so that the user receives a simple "Your opponent has played their turn. You turn now!" notification after the following code is called.
AsyncMatchService.SubmitTurn( currentMatch.ownerId, currentMatch.matchId, (ulong)currentMatch.version, JsonWriter.Serialize(matchState), "Your opponent has played their turn. You turn now!", // Push notif message currentMatch.matchedProfile.ProfileId, null, null, OnSubmitSuccess, OnSubmitFailure );
-
My game only needs to send push notifications when the matched player has completed their turn in ASYNC match. I know the SubmitTurn function has an argument for push notification message. So how do I register just for this notification. The docs have information about sending our own push notifications which isn't needed for my game at the moment.
Thanks in advance!
[Unity] Registering push notifications specifically for Async turns.
[Unity] Registering push notifications specifically for Async turns.
[Unity] Registering push notifications specifically for Async turns.