2

I'm refering the link

https://developers.google.com/drive/v3/web/quickstart/ios#step_1_turn_on_the_api_name

To authenticate google drive with my application. I can do signing with google with pod 'Google/SignIn' but not with

pod 'GoogleAPIClientForREST/Drive', '~> 1.1.1'
pod 'GTMOAuth2', '~> 1.1.4'

As link suggest. Also I can see that the above google link says that Last updated March 9, 2017. enter image description here

It seems like this code is now not is use but google doc is not updated. Please correct me if I'm wrong.

Ashwin Kanjariya
  • 1,019
  • 2
  • 10
  • 22

2 Answers2

0

Hmm.. Google mustn't have updated the doc.

Although, they had announced that authentication from embedded browsers is no longer supported, for improving app usability.

In the coming months, we will no longer allow OAuth requests to Google in embedded browsers known as “web-views”,

Divins Mathew
  • 2,908
  • 4
  • 22
  • 34
0

As you can see in this blog:

"In the coming months, we will no longer allow OAuth requests to Google in embedded browsers known as “web-views”, such as the WebView UI element on Android and UIWebView/WKWebView on iOS, and equivalents on Windows and OS X."

To help you migrate, they offer libraries and samples that follow modern best practices which you can use:

You can also check the Github - Introduction to the Google APIs Client Library for Objective-C for REST to help you check on the updates for the Google API. There is also reported issue about this which you can follow to track on any updates on this.

Hope this helps.

Mr.Rebot
  • 6,703
  • 2
  • 16
  • 91