Android Build of App Boots to Blank White Screen After Splash on AOSP < 7.0

Hey everyone,

I’m struggling to get my android apks to run on Android 6.1 and below. I don’t get any build errors, my app runs fine on Android 7 and Android 8 real devices and emulators, but on any version of android less than 7 it shows the splash and then just sits on a blank white screen. No crash, no errors, just a blank white screen forever.

I did some googling and couldn’t find any reports of other devs having this issue, but hopefully it’s an easy/straightforward fix. I don’t want to use crosswalk since it’s no longer being maintained and I’m fine targeting android devices 5.0 and above, if I can get Android 5 and 6 working. Any ideas/suggestions would be hugely appreciated.

All of my dependencies are up to date, as seen in the package.json:

"scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "ionic:build": "node --max_old_space_size=8192 ./node_modules/@ionic/app-scripts/bin/ionic-app-scripts.js build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "4.4.3",
        "@angular/compiler": "4.4.3",
        "@angular/compiler-cli": "4.4.3",
        "@angular/core": "4.4.3",
        "@angular/forms": "4.4.3",
        "@angular/http": "4.4.3",
        "@angular/platform-browser": "4.4.3",
        "@angular/platform-browser-dynamic": "4.4.3",
        "@ionic-native/app-rate": "^4.3.1",
        "@ionic-native/core": "^4.3.1",
        "@ionic-native/native-audio": "^4.3.1",
        "@ionic-native/splash-screen": "^4.3.1",
        "@ionic-native/status-bar": "^4.3.1",
        "@ionic/app-scripts": "3.0.0",
        "@ionic/storage": "2.0.1",
        "cordova-android": "^6.3.0",
        "cordova-ios": "^4.5.1",
        "cordova-plugin-apprate": "^1.3.0",
        "cordova-plugin-device": "^1.1.6",
        "cordova-plugin-dialogs": "^1.3.3",
        "cordova-plugin-globalization": "^1.0.7",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-ionic-webview": "^1.1.15",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.3",
        "cordova-sqlite-storage": "~2.0.4",
        "ionic-angular": "3.7.0",
        "ionicons": "3.0.0",
        "ios-deploy": "^1.9.2",
        "npm": "^5.4.2",
        "rxjs": "5.4.3",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.17"
    },
    "devDependencies": {
        "@ionic/cli-plugin-cordova": "1.6.2",
        "@ionic/cli-plugin-ionic-angular": "1.4.1",
        "ionic": "^3.12.0",
        "typescript": "2.5.3"
    },

And ionic info:

cli packages:

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

global packages:

    cordova (Cordova CLI) : 7.0.1 

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.3.0 ios 4.5.1
    Ionic Framework    : ionic-angular 3.7.0

System:

    Android SDK Tools : 26.0.2
    ios-deploy        : 1.9.2 
    Node              : v8.6.0
    npm               : 5.4.2 
    OS                : macOS Sierra
    Xcode             : Xcode 9.0 Build version 9A235 

Misc:

    backend : legacy
1 Like

Is anything news on this issue? I am facing whitescreen after change platform to cordova-angular 6.3.0, did google 2 days but no luck till now.

I can build successful, run successful, but after splash screen is white screen. When check console log, there isn’t anything to trace.

Here below is ionic info:
cli packages: (C:\Users\GrabTasker\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.17.0
ionic (Ionic CLI) : 3.17.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.8.0

System:

Android SDK Tools : 25.2.5
Node              : v6.9.2
npm               : 5.5.1
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\GrabTasker\AppData\Local\Android\Sdk

Misc:

backend : pro

Thanks for any help!

1 Like

Sorry - I still don’t have a solution. My app runs fine on Android 7+ and I’ve got around 50 testers so far running it on their devices. It’s not an android Cordova issue AFAIK

Any version of android less than 7.0 will splash and go into a white screen, with no error or crash reports. I’m not familiar with android debugging so I still haven’t figured out what is going on. I’ll let you know if I have any updates

1 Like