Reputation: 61
The app runs fine on ios and android 4.4+
and lollipop
. However on older android versions (e.g 4.1.1) the app crashes directly after I start it.
Full stacktrace her is the logcat stack trace on such a tablet (Not sure which piece I had to copy) here the link
The exception is rather vague.
Thank you!
Upvotes: 2
Views: 1312
Reputation: 2669
android 4.4+ use chromium as default browser, while any version below use android-browser. It is much weaker browser. If your app runs perfectly in ios or android-4.4, then this could be the reason.
one work around is to use crosswalk by intel. cordova-crosswalk. Read More.
Basically it wraps your app in chromium browser, and package it as android app. when the app run, it run chromium first( instead of android-browser) and then the code inside of it. noticable cons is extra 15-20mb to your app filesize.
In the recent update, it seems there is new command to migrate app automatically. But what i did previously, was to do manual migration (by copy paste).
> few Tips if you do manually:
> 1. create new crosswalk project from cli
> 2. copy files in **www folder in cordova** to **www folder in crosswalk**
> EXCLUDING one file : config.xml
> 3. Install your plugin manually. Read More: http://goo.gl/wF4CmD.
> 4. in crosswalk,set the config.xml manually.
Upvotes: 2