Vijay Samuel's Blog

Fixing the cordova white screen of death on Android 4.0.*

Posted on: January 7, 2015

I’ve been playing around with Drupalgap for a while now and have been very impressed with the contribution done by Tyler Frankenstein. One problem that I had run into is, when doing cross platform testing, Android 4.0.* was throwing a white screen of death. There were multiple solutions out there and experimenting with each one was a pain. I’ve finally solved the issue and here is how I got about it.

Turns out that corodova-android-3.7.0 has the fix to the white screen of death and it can be used as the cordova.js to build the target app for Android.

Follow the instructions in the below link to generate the 3.7.0 version of cordova.js:

https://github.com/apache/cordova-js/tree/3.7.x

The resultant cordova.js can be found in the source cordova-js directory under pkg/cordova.android.js. Copy that file into platforms/android/platform_www/cordova.js and rebuild your cordova app. It should fix the issue.

Hope this helps. Cheers! 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

My Timeline

January 2015
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031  

I, Me and Myself

My Blog Stats

  • 6,257 hits

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 4 other followers

%d bloggers like this: