The default Cordova WebViews are not always the most performant option. ember-cordova initializes your platform with the most performant web view if you add platforms with the
ember cdv:platform add command.
The UIWebView has been a class since iOS 2, whereas WKWebView was introduced in iOS 8. It includes the newer API’s and considerable performance improvements for JS applications.
If you would instead like to initialize with a UIWebView, run
ember cdv:platform add ios --uiwebview.
Crosswalk is a custom WebView for Android, which will:
- ensure your app is running in the same JS environment, vs. standard Android fragmentation;
- give you consistency with CSS parsing; and
- Improve JS performance, especially for older devices.
The downside of crosswalk is that builds will now give you two apks, one for each of the x86 and armv7 platforms respectively. If you are shipping via the Google Store, you can upload both apks and trust the right one will be delivered. In testing, it is important to ensure you are working from the correct apk.
To install crosswalk when adding a platform, simply
ember cdv:platform add android --crosswalk.