Hello Folks, I need help implementing real-time notifications for when a matchmaking match is found, I was able to subscribe to the MatchMaking MatchInvite and listen for the topic in PubSub, but no messages are received.
Connection code
var handle = await _pubsub.GetConnectionHandle(true); var req = new SubscribeToMatchResourceRequest() { SubscriptionVersion = 1, Type = "MatchInvite", EntityKey = LocalPlayer(), ResourceId = "@me", PubSubConnectionHandle = handle }; PlayFabMultiplayerAPI.SubscribeToMatchmakingResource(req, result => { _invitesTopic = result.Topic; _pubsub.ListenTopic<string>(_invitesTopic, ListenForMessages); }, _playfab.HandleError);
Just for context, I already implemented the listener for LobbyChanges, and is working perfectly.
I already came across the following topics, https://community.playfab.com/questions/62028/matchmaking-how-do-i-use-the-subscribetomatchmakin.html https://community.playfab.com/questions/53078/adding-matchmaking-to-our-game-and-finding-and-joi.html
The answers say that real notifications do not work for matchmaking, then why expose the endpoint to subscribe to match invites?