White screen of death android

Ive been getting the white screen of death on some android devices.

Htc one mini – works
htc one — doesnt work
galaxy tab – doesnt work

Not even sure where to begin. Any ideas?

What version of ionic are you using? What version of cordova? What versions of android are the devices running? Are you getting any errors in the browser?

Ionic - v1.0.0-beta.6
Cordova - 3.4.1-0.1.0

Working
HTC One Mini - 4.4.2
Nexus 5 Emulator - 4.4.2

Not Working
HTC One - 4.3 (curious if I update, will it work)
Galaxy Tablet - 4.1.1

Will check for browser errors this evening.

I was able to connect the phone to adb and found this:

D/CordovaLog(29278): file:///android_asset/www/js/app.js: Line 63 : Uncaught TypeError: Illegal constructor
E/Web Console(29278): Uncaught TypeError: Illegal constructor at file:///android_asset/www/js/app.js:63
Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to:
E/Web Console(29526): Error: [$injector:nomod] Module ‘starter’ is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

This is line 63 and few more before/after:
var GeoPosition = null;
var GeoWatch = {};
var locationUpdatedEvt = new Event(“location-updated”);
var reinitializeEvt = new Event(“initialize-now”);

var onCurrentPositionSuccess = function(position) {
GeoPosition = position;
document.dispatchEvent(locationUpdatedEvt);
};

I think we figured it out. Upgraded cordova, rebuilt the android and it seems to working on more devices now.

1 Like