ludei / Construct-2-plugin

http://www.ludei.com
41 stars 35 forks source link

Google Play Services - Errors/Freezes when not logged on but accessed #44

Open ArcadEd opened 10 years ago

ArcadEd commented 10 years ago

If you call the action to submit an achievement or post a score to a leaderboard, and Google Play Services isn't logged in, or you have no internet connect, the game will freeze.

Work Around - Create a global variable that is set to 1 when Login Succeeded and to 0 when Login Failed or user is logged out. Check that variable before posting scores or submitting achievements.

This issue does not happen on game center that I have found.

LibelulaV commented 10 years ago

Hello,

Thanks a lot for your message. I will have a look to the Plugin code to see if I can add a condition to avoid this issue in the future update.

Regards.

LibelulaV commented 10 years ago

Hello,

I have been investigating this issue, checking the code of the old and new plugin and, well, both of them already have an internal function called isLoggedIn() that returns true is the user is logged in and false in the other way. This is called when the function ShowLeaderboards is called (and also the achievements). So it seems this function is not working as expected. I need a little bit more of time for figuring out what is happening, because it works fine in our demos. I will keep you informed.

Regards.