What is the browser used by cordova on iOS?

I understand that Android uses a Chromium-based WebView (since version 4.4). Does cordova use on iOS Safari or something else?

+5
source share
2 answers

Safari for iOS uses WebKit2 (starting with iOS 8).

Details about WebKit2.

This seems to answer your question.

This plugin allows Cordoba to use the WKWebView component instead of the default UIWebView component and can only be installed on a system with iOS 9.0 SDK.

UIWebView is part of WebKit.

+5
source

Cordova applications use the UIWebView component to download safari-based applications ( WebKit2 ), but it does not include the Nitro javascript mechanism (one application for Safari), so your corridor applications will be slower than the Safari application executing the same code.

After exiting Cordova 4.0, it will include β€œplug-in webviews,” which means you can choose which WKWebView use from any of the WKWebView available on the SDK (right now UIWebView and WKWebView )

If you cannot wait for cordova 4.0, you can use the WKWebView plugin

WKWebView also based on safari, but it uses the Nitro javascript engine, so it works as a Safari application

Here you can read the full article on the comparison between UIWebView and WKWebView

The main difference is that, as I mentioned earlier, WKWebView uses the Nitro javascript engine, which is faster than the one used in UIWebView , and WKWebView supports IndexedDB and ObjectStore ArrayBuffer .

CSS compatibility and rendering are the same for UIWebView, WKWebView, and Safari

+4
source

Source: https://habr.com/ru/post/1235704/


All Articles