Forum Discussion
bilgekagan
12 months agoProtege
Player Can’t Rejoin Same Room After Game Restart (Quick Join Creates New Room) (Netcode- Relay)
Hi everyone,
I’m having an issue with my multiplayer game using Netcode. When a player closes the game without properly disconnecting, and then reopens the game, they are unable to rejoin their previous room using the “Quick Join” functionality. Instead, it creates a new room.
Here is my OnPause function to handle oculus quest close:
private void OnApplicationPause(bool pause)
{
if (pause)
{
Lobbies.Instance.RemovePlayerAsync(currentLobby.Id, AuthenticationService.Instance.PlayerId);
NetworkManager.Singleton.Shutdown();
Debug.LogError($"Player {AuthenticationService.Instance.PlayerId} removed from lobby {currentLobby.Id}");
if (NetworkManager.Singleton.IsHost)
{
Lobbies.Instance.DeleteLobbyAsync(currentLobby.Id);
}
Debug.Log("Disconnected from lobby and network.");
connectionState = ConnectionState.Disconnected;
Application.Quit();
}
}
Any ideas
3 Replies
Replies have been turned off for this discussion
- MetaStoreHelpCommunity Manager
Hi there!
We'd certainly love to help you out with this. Can you please private message us so we can confirm some more information.
We look forward to hearing from you. Thank you!
- MetaStoreHelpCommunity Manager
Hi there!
We hope you're well. Just following up with you as it has been 24 hours without a response. Do you still require assistance with your query? If so, please do just private message us so we can collect some more information and look into this for you!
Kind regards.
- bilgekaganProtege
Thank you for following up. I’ve sent a private message with the details for further assistance.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago
- 27 days ago
- 23 days ago