kloder-games / godot-gpgs

Godot Module for Google Play Game Services
MIT License
56 stars 16 forks source link

gpgs keeps try to login even without internet #4

Closed ghost closed 6 years ago

ghost commented 7 years ago

Well, the sigin works perfectly but when you haven't any connections from internet and try to sigin the game shows the google play games' logo and keep trying to sigin, the logo appears many times in loop.

ghost commented 7 years ago

I solved the bug. In the file Client.java, at the method resolveConnectionFailure, just remove the follow code:

if (errorCode == ConnectionResult.INTERNAL_ERROR) {
  googleApiClient.connect();//comentei esta linha
}

This code cause to try reconnect to google play game services, even when nothing can be do to connect, because not have internet.

ghost commented 7 years ago

Reopen to someone see the bug and make a pull request hehe

cbrhex commented 6 years ago

Fixed