playgameservices / cpp-android-basic-samples

Sample games using the Google Play Games C++ SDK
302 stars 133 forks source link

Invitation handler hit before authentication finishes #9

Closed cjserio closed 8 years ago

cjserio commented 9 years ago

This is an API issue, not with the actual samples themselves but I've heard that other people are submitting GPG bugs to the AOSP database and getting them rejected for being in the wrong location.

This issue pertains to the C++ SDK (v1.4) on Android using NDK 10d.

If I accept an invitation notification from outside of the application and I accept it, the following events occur in order:

1) Application is Launched 2) OnAuthActionStarted callback runs 3) OnMultiplayerInvitationEvent runs 4) OnAuthActionFinished callback runs

Events 3 and 4 are out of order. Until our app sees its GPG authentication, it's in no way prepared to handle the chain of events that are going to occur when the invitation is handled.

claywilkinson commented 9 years ago

Thanks @cjserio - can you capture a log file of this happening? It will help speed up addressing this issue.

cjserio commented 9 years ago

I have a logcat saved but it looks like I can't attach it here.

claywilkinson commented 8 years ago

Closing due to inactivity - please open a new issue if this is still happening.