the lib is awesome and works out of the box, but the crappy google play services require on most of the cases, of this function to avoid glitches and bugs on the game play. for example, in my case (and like nitrome games does), i have a loading screen i show in the meantime i set up everything ( game data, ads if exist, and leaderboards) and i force the login of the user in that phase. for this reason, i need to know when google play services finished to use the activity, to load the game world. with this function, i was able to detect a pattern of results depending different circumstances, if the connection is up, if the user logged in or not etc.. to know when to load the actual game. is enough flexible and useful to be adapted to any kind of game logic.
i tried to follow your code structure as much i could, and added instructions to the readme. if you could merge it and release a new haxelib package with it, it would be awesome :D
Hi,
the lib is awesome and works out of the box, but the crappy google play services require on most of the cases, of this function to avoid glitches and bugs on the game play. for example, in my case (and like nitrome games does), i have a loading screen i show in the meantime i set up everything ( game data, ads if exist, and leaderboards) and i force the login of the user in that phase. for this reason, i need to know when google play services finished to use the activity, to load the game world. with this function, i was able to detect a pattern of results depending different circumstances, if the connection is up, if the user logged in or not etc.. to know when to load the actual game. is enough flexible and useful to be adapted to any kind of game logic.
i tried to follow your code structure as much i could, and added instructions to the readme. if you could merge it and release a new haxelib package with it, it would be awesome :D
Regards.