playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
971 stars 973 forks source link

sendReliableMessage not always working #274

Open radefffactory opened 6 years ago

radefffactory commented 6 years ago

I noticed that sometimes sendReliableMessage for Real Time Multiplayer doesn't work. And that causes my game to stop working. I tried to avoid this in onRealTimeMessageSent with: if (statusCode != GamesCallbackStatusCodes.OK) { //send again due to error sendMessage(lastMessage); } but this doesn't always work. Sometimes it tries to send the message again and again at least 100 times and sometimes the game continues, but sometimes it drops the player trying to send the message. How I can ensure that the message delivery is always successful? This is very unreliable now. Does other people face similar issues?

I notice that this is happening since last Monday - and that is the day of the last Google Play Services update.

quangvuduc commented 6 years ago

I'm having the same problem and it happened when I imlemented my game last year not only recent updates from Google Play Services. I'm using version 12.0.1.