I am trying to implement a real-time multiplayer in my Android game using
the Google Play Games Services but I am facing an issue when the onRoomCrea
onRoomConnected is called when the client attempts to create a real-time room. The real-time room can be created by calling the createRoom(RoomConfig) operation which create a real-time room for the current game. The lifetime of the current game's connection to the room is bound to this GamesClient's lifecycle. When the client disconnects, the player will leave the room and any peer-to-peer connections for this player will be torn down.
You can visit this page for more information.
You can also check this document on how to use the Google Play Developer Console to set up Google Play games services if you forgot something.