How to disconnect and reconnect/rejoin in room
As a requirement, when the app goes in the background makes the user exit from the room and if the app comes in the foreground makes the user rejoin the room.
////// For rejoin ////
Debug.Log("ReJoining previous room: " + this.previousRoom); PhotonNetwork.ReJoinRoom(this.previousRoom);
When the app comes in the foreground the user is not rejoining.
been trying this quite a long time, @photon any help will be appreciated.