I am implementing the lobby functionality using Unity's PlayFab SDK. It was working fine until yesterday, but for some reason now I cannot find the lobby. The requests themselves are being sent and received successfully. However, it seems that the search for lobbies is no longer working properly.
Please let me know if there are any mistakes.
this is the create lobby code:
CreateLobbyRequest createLobbyRequest = new CreateLobbyRequest { AccessPolicy=AccessPolicy.Public, MaxPlayers=4, // creating user's entity Owner=PlayFabController.Instance.UserEntity, OwnerMigrationPolicy=OwnerMigrationPolicy.Automatic, UseConnections=true, Members=new List<Member> { new Member { MemberData=new Dictionary<string,string> { {"UserName", userName }, }, MemberEntity=PlayFabController.Instance.UserEntity } }, LobbyData= new Dictionary<string,string> { {"LobbyStatus","Ready"}, }, SearchData= new Dictionary<string,string> { {string_key1, "roomName"} }, }; PlayFabMultiplayerAPI.CreateLobby(createLobbyRequest, (result)=>{ // success }, OnFailure);
this is the find lobby code:
FindLobbiesRequest findLobbyRequestAsMember = new FindLobbiesRequest { Filter="lobby/membershipLock eq 'Unlocked'" }; PlayFabMultiplayerAPI.FindLobbies(findLobbyRequestAsMember, (result)=>{ switch(result.Lobbies.Count) { case0: Debug.Log($"here"); break; default: Debug.Log($"not comming"); break; } }, OnFailure);