Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When user log out google game play service? #11

Open
mori1234 opened this issue Jul 14, 2015 · 2 comments
Open

When user log out google game play service? #11

mori1234 opened this issue Jul 14, 2015 · 2 comments

Comments

@mori1234
Copy link

showachivemnet --> crash

@SonarSystems
Copy link
Owner

For Cocos2d-x C++ or Cocos2d-JS?

@mori1234
Copy link
Author

For cocos2d-x
public void onActivityResult(int requestCode, int responseCode,
Intent intent)
{
debugLog("onActivityResult: req="
+ (requestCode == RC_RESOLVE ? "RC_RESOLVE" : String
.valueOf(requestCode)) + ", resp="
+ GooglePlayServicesGameHelperUtils.activityResponseCodeToString(responseCode));
if (requestCode != RC_RESOLVE)
{
debugLog("onActivityResult: request code not meant for us. Ignoring.");
if (requestCode == your requst Code (ex 10001, 10002, 10003) && responseCode == GamesActivityResultCodes.RESULT_RECONNECT_REQUIRED)
{
onConnectionSuspended(requestCode);
}
return;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants