google / gtm-oauth2

Google Toolbox for Mac - OAuth 2 Controllers
Apache License 2.0
125 stars 70 forks source link

Error uploading file to Google Drive iOS with new Auth guideline #96

Closed wasimsafdar closed 4 years ago

wasimsafdar commented 7 years ago

I am getting "GTMOAuth2" error while I am trying to create and upload file on Google drive from my iOS application. The error is "Domain=com.google.GTMOAuth2 Code=-1001 "(null)". I updated my app with new AppAuth recently updated by google. I also updated Google Drive API. I am also using GoogleSign for authorization not a webview but still getting this error. In my view Google Drive API is still using "GTMOAuth2" instead of new updated auth that's why this error is shown. However, I was going to release my iOS application on Monday but this error is giving me tough time. Any Solution would be welcomed. I also posted this issue in detail on StackOverFlow.

http://stackoverflow.com/questions/43832885/error-uploading-file-to-google-drive-ios

thomasvl commented 7 years ago

With the info provided, it's sorta hard to tell why auth is failing. The NSError might have an error string in the userInfo dictionary that might shed some light on it.