Ionic 3 android app blank screen error on - -prod - -release

on --prod --release android app not working showing blank screen after splash screen but working on run android


ionic (Ionic CLI) : 4.11.0 (C:\Users\YBS Dev\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0


cordova (Cordova CLI) : not installed
Cordova Platforms : android 7.1.4
Cordova Plugins : not available


Android SDK Tools : 26.1.1 (C:\Users\YBS Dev\AppData\Local\Android\Sdk)
NodeJS : v10.16.3 (C:\Program Files\nodejs\node.exe)
npm : 4.0.5
OS : Windows 10

I had the same problem, but I don’t remember how I solved it.

You could check the content of the config.xml file, I have this code in my app:

    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="15000" />
    <preference name="orientation" value="portrait" />
    <preference name="FadeSplashScreenDuration" value="1500" />
    <preference name="FadeSplashScreen" value="true" />
    <preference name="SplashScreen" value="screen" />
    <preference name="ShowSplashScreen" value="true" />
    <preference name="ShowSplashScreenSpinner" value="true" />
    <preference name="SplashShowOnlyFirstTime" value="false" />

and in the file app.component.ts:

  initializeApp() {
    this.platform.ready().then(() => {
      console.log('@@@ initializeApp1');

thanks for your reply i will try it