I'm developing an app that has access to user's appdata folder on Google Drive. When I am on debug mode, the app works fine. When I make a release of the app and I try to connect to Google Drive it give me this error after I choose which account to connect:
com.google.api.client.googleapis.json.GoogleJsonResponseException:
403 Forbidden
{
"errors" : [ {
"domain" : "global",
"reason" : "insufficientScopes",
"message" : "The granted scopes do not give access to all of the requested spaces.",
"locationType" : "parameter",
"location" : "spaces"
} ],
"code" : 403,
"message" : "The granted scopes do not give access to all of the requested spaces."
}
I used this way to connect to Google Drive: https://developers.google.com/drive/v3/web/quickstart/android
I also make one credential for debug and one for release mode in Google Dev Console.
How can I solve this problem? Any help is apreciate. Thanks buddies!