Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does capacitor have a WEB-VIEW under the hood?

I have been creating apps with ionic for a few years now. As capacitor has now replaced Apache cordova, which was based on a web view, I was wondering weather Capacitor does the same?

If yes, then how is it any different from apache cordova in terms of performance as the limitations of the web view will still imply.

Thanks.

like image 641
krv Avatar asked Dec 02 '18 03:12

krv


People also ask

Does Capacitor use WebView?

Android Support​On Android 5 and 6, Capacitor uses the Android System WebView.

How does a Capacitor framework work?

Capacitor is a cross-platform native runtime for Web Native apps. At a high level, that means Capacitor takes a modern web app, and then packages it up to run on iOS, Android, and PWA with access to native platform features and OS-level controls.

What is Capacitor in mobile app?

Capacitor is a cross-platform native runtime that makes it easy to build performant mobile applications that run natively on iOS, Android, and more using modern web tooling. You can think of it like Electron or Tauri, but for mobile apps.


1 Answers

Yeah both Apache Cordova and Capacitor are based on a web-view however capacitors web-view is made in house by Ionic most likely a stripped down version webkit. So there may be a performance benefit for Capacitor as they'll be able to remove unnecessary features from the ios and android web-view. The main real difference is how they access/build the native functionality whereas Cordova packages most of it away and attempts to do everything itself to varying success, Capacitor will let you work with the Android Manifest/Info.plist/etc. Capacitor also has the advantage of giving the Ionic team full control of the development environment which should mean if there are issues their team can fix it quickly.

It seems more about giving more development freedom and reliability than performance.

like image 130
Ira Watt Avatar answered Oct 14 '22 23:10

Ira Watt