cordova-plugin-ionic-webview icon indicating copy to clipboard operation
cordova-plugin-ionic-webview copied to clipboard

Using Chrome webview on iOS instead of WKWebview

Open itziksha opened this issue 2 years ago • 4 comments

Hi,

This plugin uses WKWebView on iOS and the latest evergreen webview on Android.

iOS 15 has a problem with playing WebRTC playback, so our app video is now broken. WebRTC works on Ionic in Android and also on Chrome browser in iOS, but not on Safari or on our Ionic app with WKWebView.

I'm pretty sure about the answer, but we want to make sure anyway :) Is it possible to use Chrome as a WebView on iOS, instead of WKWebview, in Ionic app?

Thanks.

itziksha avatar Oct 12 '21 11:10 itziksha

Hi. I think Chrome on iOS also uses Wkwebview due to Apple policies. So does Firefox and all other alternative browsers.

Don't know if it is related - but check if iOS 15 fixes the issue? Ref: https://developer.apple.com/forums/thread/692214 / https://github.com/ionic-team/ionic-framework/issues/23997

oddcb avatar Oct 28 '21 09:10 oddcb

@itziksha there is no way to choose the webview on iOS you just get wkwebview.

As @oddcb has mentioned, I'm also pretty sure chrome/firefox etc on iOS also use the same underlying wkwebview. If it works on one of those there may well be a way to work around the issue in your app also.

ghenry22 avatar Nov 01 '21 15:11 ghenry22

@ghenry22 Is there any way to use chrome engine(web) on the ionic application? Instead of an Android web view?

Smizz1609 avatar Apr 21 '22 07:04 Smizz1609

@Smizz1609 On Android the webview is based on Chrome/Chromium since Android 4.4. (https://developer.chrome.com/docs/multidevice/webview/)

If you need to open a webpage inside your app the best bet is either inappbrowser plugin or cordova-plugin-safariviewcontroller (also works on Android). cordova-plugin-safariviewcontroller pops up a webbrowserish view of the requested webpage and presents some simple controls to the user for navigation.

oddcb avatar Apr 21 '22 07:04 oddcb