In my Android game, I want players to be able to invite their friends to a game match that will take place later. The player who created the match selects this date and time. I want these invitations to be on hold, which means that users do not need to immediately accept the invitation, but rather have them on the waiting list, where they can accept them at any time, if this is before the date and time when the game takes place. The game itself is a real-time game.
I was thinking about using Google Play Services to accomplish this and other things in the game, such as achievements, etc., and I believe that it will work well with a real game. The fact that he works as a cross platform is also a big plus. The problem is how invitations are handled by Game Services. From the documentation of the Google developer: https://developers.google.com/games/services/common/concepts/realtimeMultiplayer
Room : A virtual meeting space for games. Players may be invited to join rooms or have been automatically agreed with them. Players who are connected to the same room can exchange game data with each other.
Party Players who can participate in the game. A local player can send invitations to other players from their circles to join the room or request an automatic match with random players. The player to whom the invitation is sent, you will see a notification to accept the game invitation. If the player accepts the invitation, they join the room. Participants in the room are managed by Google. Listen to the game services and send them to the players.
All this is done on the spot, and the game should be played immediately when all the players have accepted the invitation. My question is: is there a way around this in Google Play Game Services in order to use my invitation system? Or is there another game service that can support what I want to achieve?
One of the ideas that I used to work in Game Services treats it like two different invitations: a player invites his friends to a game that will take place after a while. When invited friends accept this invitation, the timer is set in their application 10 minutes before the start of the game. When the timer is running, a dialog box is displayed where players, again, can accept whether they want to participate in the game or not. This is when the room is created, and the game will work like a regular multiplayer game in real time. The problem with this solution is the invitation. I do not think they can be on hold, but should be taken in place that my application should not work.
source share