Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has google removed the usage of UIWebView in googlesignin sdk v5.0.1?

Recently Apple has started giving warnings on the usage of UIWebView and asking app publisher tp update the app and use WKWebView instead of UIWebView. We are using googlesignin sdk in our app to support Google SignIn. Has google sdk remove the usage of UIWebView in their SDK?

like image 393
Anshul Avatar asked Oct 31 '19 10:10

Anshul


People also ask

Is UIWebView deprecated?

Apple is phasing out UIWebView, which is used by developers for integrating web content into an app in a quick and secure manner. Apple is replacing UIWebView (and WebView) with WKWebView, an updated version, as UIWebView has been deprecated.

When was UIWebView deprecated?

And last year, we announced that the App Store will no longer accept app updates containing UIWebView as of December 2020.

What is the difference between UIWebView and WKWebView?

Difference Between UIWebview and WKWebView UIWebview is a part of UIKit, so it is available to your apps as standard. You don't need to import anything, it will we there by default. But WKWebView is run in a separate process to your app,. You need to import Webkit to use WKWebView in your app.

How do I replace WKWebView with UIWebView?

Open “Main. storyboard” and on your ViewController's view drag “WebKit View” i.e. WKWebView. Select a WKWebView and place on your view of a view controller.


1 Answers

No, it just added WKWebview but UIWebview is still used too.

verify usage of webview by running this command in your project folder via terminal

grep -r "UIWebView" .

My result is:

./Pods/AppAuth/Source/AppAuth.h:    for the auth request. `UIWebView` and `WKWebView` are explicitly *not*
./Pods/AppAuth/README.md:for the auth request. `UIWebView` and `WKWebView` are explicitly *not*
./Pods/GoogleSignIn/CHANGELOG.md:- Supports sign-in via UIWebView rather than app switching to a browser

Update 21/07/2020:

Now, just update your Podfile using latest version of GoogleSignIn

pod 'GoogleSignIn', '~> 5.0'

and run 'pod install' in terminal

Google already update their sdk described in changelog of AppAuth pods v.1.3.1 here

like image 135
Bamz3r Avatar answered Sep 25 '22 22:09

Bamz3r