Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Connection Fails, SIGN_IN_REQUIRED #9

Open
trippedout opened this issue Jul 6, 2016 · 2 comments
Open

Connection Fails, SIGN_IN_REQUIRED #9

trippedout opened this issue Jul 6, 2016 · 2 comments

Comments

@trippedout
Copy link

I just cloned this repository and opened it in Android Studio, built and ran it on my Nexus 6P, without making any changes, and when the account chooser pops up, no matter which account I choose, i get this error message immediately logged:

I/drive-quickstart: GoogleApiClient connection failed: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{bd2ce36: android.os.BinderProxy@75a7137}, message=null}

Again, built straight from source, no changes, just doesn't work.

Also, the resolution intent is not handled in onActivityResult, so not sure what to do if this were to happen in production.

@Zo11
Copy link

Zo11 commented Aug 20, 2016

You have to authorize the app. https://developers.google.com/drive/android/auth

Google needs to have the signature of your app before it allows changes in the drive. (Yes, the error message is misleading)

You can see an example of it being done here.

@mruijzendaal
Copy link

Is the OAuth 2.0 method shown in the linked youtube video the only way that works? For access to the AppFolder drive only, is OAuth 2.0 needed or is an API Key enough?

Also, isn't some kind of meta-data needed to be added to the manifest?

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

No branches or pull requests

3 participants