I had the google drive sdk quick start for android up and running.
What I am trying to do is to expand the application to be able to upload a file on the drive new 'App Data' folder and be able to download this file back again (Sync config files between android devies)
Uploading a file works fine. But When I try to download the same file, I can get its meta data like fileID, fileTitle, fileDownloadURL etc but can not download the the contents. I receive 401 Unauthorized error while trying.
I am usnig AUTH SCOPE "https://www.googleapis.com/auth/drive.appdata" to access appdata.
Any Idea why this is happening?
I can reproduce this when only using the drive.appdata scope. If I add another Drive scope like the drive.readonly scope it works fine.
I agree this is a bug (or at least surprising behavior), so I will raise one, but please use the workaround above for now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With