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?
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.
And last year, we announced that the App Store will no longer accept app updates containing UIWebView as of December 2020.
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.
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.
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
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