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

how to know if user denied access? #15

@or-dvir

Description

@or-dvir

hi.
i am looking into integrating some functionality of google drive in my app and i have immediately noticed something that's missing.
if the app is not yet authorized, i get this error message:
GoogleApiClient connection failed: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{a846aa3: android.os.BinderProxy@ff141a0}, message=null}

assuming this is the first time the user is trying to connect, then the "choose account" and permission dialogs will display. in the permission dialog, the user can choose to either accept or deny. i would like to catch the event where a user denies the permission and display an appropriate message - however,
the exact same error message is logged.
how can i differentiate between "user denied permissions" event to other events? (like the first time the user is trying to connect)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions