title: Ionic android white screen after splash screen Ionic v4
body: <p><strong>Info</strong></p>
  
  <p>Ionic - v4</p>
  
  <p>Cordova - 8.1.2</p>
  
  <p>Cordova-android : 7.1.1</p>
  
  <p>@ionic/angular: 4.0.0-rc.1</p>
  
  <p>Though this is a duplicate of previously asked question I still can't figure out the issue in my case so I am asking it again.</p>
  
  <p>Without --release --prod my APK works fine but when building for production I get the white screen forever.</p>
  
  <p><strong>I have tried the below steps</strong></p>
  
  <ul>
  <li><p>Added <code>&lt;preference name=“loadUrlTimeoutValue” value=“700000” /&gt;</code> in config.xml</p></li>
  <li><p>Tried hiding splash screen after timeout</p></li>
  <li><p>Tried renaming index to main and added window.location in index file</p></li>
  <li><p>Tried removing cordova android platform and reinstalling</p></li>
  <li><p>Removed the node modules folder and reinstalled</p></li>
  <li><p>Reinstalled all cordova plugins</p></li>
  <li><p>Also added super.loadurl in mainactivity file</p></li>
  <li><p>Changed base href to “.” from “/”</p></li>
  </ul>
  
  <p>But nothing worked and when i build using the below command </p>
  
  <p><strong>ionic cordova build android --prod</strong></p>
  
  <p>I get an app-debug apk which i debugged using chrome remote debugging and I get the below errors</p>
  
  <p><a href="https://i.stack.imgur.com/y1wcS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y1wcS.png" alt="enter image description here"></a></p>