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

endless loop #1

Closed
Rainer-Lang opened this issue Jun 26, 2015 · 5 comments
Closed

endless loop #1

Rainer-Lang opened this issue Jun 26, 2015 · 5 comments
Labels

Comments

@Rainer-Lang
Copy link

If I cancel the google resolution, I'm in an endless loop.

@JhonatasMartins
Copy link
Owner

I fixed it, I just remove the googleApiClient.connect() from onActivityResult(), and fixed google plus revoke access too

@Rainer-Lang
Copy link
Author

And all works, if the resolution appears and I accept it?

@Rainer-Lang
Copy link
Author

I use as workaround this: "RESULT_OK"

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

        if ( resultCode == RESULT_OK && requestCode == GoogleAuth.GOOGLE_SIGN_IN ) {
            googleAuth.login();
        }
        else if ( requestCode == FacebookAuth.FACEBOOK_SIGN_IN ) {
            facebookAuth.getFacebookCallbackManager().onActivityResult(requestCode, resultCode, data);
        }
    }

@JhonatasMartins
Copy link
Owner

I did some tests and it seems works normally

@Rainer-Lang
Copy link
Author

Ok, thanks. I will use your code.

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

No branches or pull requests

2 participants