- Hybrid Mobile Development with Ionic
- Gaurav Saini
- 258字
- 2021-07-02 23:53:51
Adding Crosswalk browser
Older Android versions (4.0 - 4.3) that stock web view have low performance and lack many of the latest HTML5, CSS3, and JS features. You will see a lot of difference when you deploy your application on the latest Android 7.0 and in older versions. Here is when Crosswalk comes into the frame; Crosswalk gives the latest web view aligned with Chrome on Android. This increases the performance of both HTML/CSS rendering and JavaScript performance ten times. It reduces fluctuations and fragmentation among devices. Another set of features that Crosswalk brings is access to webGL, WebRTC, CSS3 features, and various APIs. It provides improved performance and debugging applications become really easy. The Cordova Crosswalk plugin helps you easily add the Crosswalk browser in your application:
$ ionic cordova:plugin add cordova-plugin-crosswalk-
webview
Currently, supported browsers are Crosswalk and Crosswalk-lite for Android. You can use Crosswalk lite mode by passing a variable flag:
$ ionic cordova:plugin add cordova-plugin-crosswalk-
webview --variable XWALK_MODE="lite"
Please take care that running these step will replace the default browser. Although you can anytime revert back by uninstalling the plugin and build again. The following are some advantages of using Crosswalk:
- Gain in performance
- Reduced fluctuations and fragmentation
- Ease of debugging
- HTML5 and CSS3 features
- Access to webRTC, webGL, web Sockets, and so on
Another thing to note is that after you have added the Crosswalk browser you will see the size of your APK increase by around 15-20 MB and increased of size on disk when installed around 50 MB.
- Instant Node Package Manager
- Web程序設(shè)計(jì)及應(yīng)用
- Docker進(jìn)階與實(shí)戰(zhàn)
- Mastering Selenium WebDriver
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(微課版)
- JavaFX Essentials
- C語言程序設(shè)計(jì)立體化案例教程
- 大模型RAG實(shí)戰(zhàn):RAG原理、應(yīng)用與系統(tǒng)構(gòu)建
- Linux Device Drivers Development
- RSpec Essentials
- 平面設(shè)計(jì)經(jīng)典案例教程:CorelDRAW X6
- 后臺(tái)開發(fā):核心技術(shù)與應(yīng)用實(shí)踐
- Java EE Web應(yīng)用開發(fā)基礎(chǔ)
- Building Business Websites with Squarespace 7(Second Edition)
- Java Script從入門到精通(第5版)