Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the browser used by cordova on iOS?

Tags:

ios

cordova

I understand that Android uses the WebView which is based on Chromium (from version 4.4), Does cordova on iOS uses Safari or something else?

like image 736
gusridd Avatar asked Nov 11 '15 14:11

gusridd


People also ask

What browser does Cordova use on iOS?

Ionic apps deployed using Cordova run within low-level, bare bones web browsers called “webviews”. Cordova utilizes each platform's native webview in order to deploy the webapp within a native app wrapper. iOS's default web browser is Safari.

What browser does Cordova use?

1. I figured out that Cordova is not using the Chrome App as browser. Instead it is using the browser integrated in the "Android System WebView" app, which is updatable in Google Play Store. Actually it is Chrome, but a different version from the Chrome App.

Does Cordova use Chrome?

Google's Augmentation of Cordova Even though Cordova runs your app on Android or iOS, you can't call any native Android or iOS APIs if you still want your app to run on Chrome—you can use only Chrome and HTML APIs.

Does Cordova use WebView?

Cordova applications are ordinarily implemented as a browser-based WebView within the native mobile platform.


2 Answers

Safari for iOS is using WebKit2 (starting from iOS 8).

Details about WebKit2.

This seems to answer to your question.

This plugin makes Cordova use the WKWebView component instead of the default UIWebView component, and is installable only on a system with the iOS 9.0 SDK.

UIWebView is a part of WebKit.

like image 94
nsinvocation Avatar answered Sep 30 '22 19:09

nsinvocation


cordova apps use the UIWebView component to load the apps, it's based on safari (WebKit2) but it doesn't include the Nitro javascript engine (the one safari app uses), so your cordova apps will be slower than safari app executing the same code.

Once cordova 4.0 is out, it will include "plugable webviews", that means, you will be able to choose which webview to use from any of the webviews available on the SDK (right now UIWebView and WKWebView)

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

WKWebView is based on safari too, but it uses the Nitro javascript engine, so it's as performant as safari app

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

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

CSS compability and rendering is the same for UIWebView, WKWebView and safari app

like image 25
jcesarmobile Avatar answered Sep 30 '22 19:09

jcesarmobile