Search code examples
angularjscordovaionic-frameworkcordova-pluginscrosswalk-runtime

Ionic app shows white screen on android 4 versions


I am developing ionic application which works fine in browser as well in android 5 versions but when i try to install my same apk in andriod 4 versions it simply displays white screen doesnt show up anything.

i had tried installing crosswalk, whitelist and splash screen plugins after installing all plugins i am unable to build. i am attaching the screenshots of installed plugins and build error please help where i am going wrong.

Please find the image where i installed the plugins

Also, Please find the error i am getting while building the app.

Please find the build error image

I am having the following in config.xml file

 <preference name="android-minSdkVersion" value="16" />
 <preference name="android-targetSdkVersion" value="16" />

Solution

  • So, i found the solution to this issue.. Installed Crosswalk plugin which adds around 17MB to the app size then i tried installing Crosswalk Lite which worked well.

    Here are few things you should look for in your config.xml :
    1. <preference name="android-minSdkVersion" value="16"/>

    2.Most important is this one : I was using beta version of xwalk earlier

     <preference name="xwalkVersion" value="xwalk_core_library_beta:18+"/>
     <preference name="xwalkMode" value="embedded"/>
    

    gives me apk of size around 33MB where actual app size is 11MB

    now i am using canary version

    <preference name="xwalkVersion" value="xwalk_core_library_canary:17+" />
    <preference name="xwalkMode" value="lite" />
    

    gives me apk of size around 21MB where actual app size is 11MB.

    Please refer to thepio answer above it helped alot.