# Stucked at white screen after splash in ionic 3

**URL:** <https://forum.ionicframework.com/t/stucked-at-white-screen-after-splash-in-ionic-3/154706>\
**Category:** ionic-v3\
**Created:** [January 30, 2019, 10:40am UTC](https://forum.ionicframework.com/t/stucked-at-white-screen-after-splash-in-ionic-3/154706 "2019-01-30T10:40:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak1233](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@Deepak1233](https://forum.ionicframework.com/u/Deepak1233)\
**Post date:** [January 30, 2019, 10:40am UTC](https://forum.ionicframework.com/t/stucked-at-white-screen-after-splash-in-ionic-3/154706/1 "2019-01-30T10:40:47Z")

</div>

hello ,  
Its freaking me out I dont know why this happens after spalsh screen ther is white screen and this is permanently stick there

I read many solutions but none of them helped or may m doing still somewhere wrong. please help me out of this

Note: when i run this into debug mode with --prod it works fine but with --release it is not working.

Here is my config.xml file … ask me else you need i ll update.

\<preference name=“ScrollEnabled” value=“false” /\>  
\<preference name=“android-minSdkVersion” value=“19” /\>  
\<preference name=“BackupWebStorage” value=“none” /\>  
\<preference name=“SplashMaintainAspectRatio” value=“true” /\>  
\<preference name=“SplashShowOnlyFirstTime” value=“false” /\>  
\<preference name=“SplashScreen” value=“screen” /\>  
\<preference name=“FadeSplashScreenDuration” value=“300” /\>  
\<preference name=“SplashScreenDelay” value=“10000” /\>  
\<preference name=“AutoHideSplashScreen” value=“false” /\>  
\<preference name=“FadeSplashScreen” value=“true” /\>  
\<preference name=“ShowSplashScreen” value=“true” /\>

**and in component.ts**

```
import { Component,ViewChild } from '@angular/core';
import { Platform,MenuController, App , NavController ,Nav,ToastController,Events} from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { timer } from 'rxjs/observable/timer';
import { HomePage } from '../pages/home/home';
import { IntrestsPage } from '../pages/intrests/intrests';
import { LatestPage } from '../pages/latest/latest';
import { PasswordPage } from '../pages/password/password';
import { AboutPage } from '../pages/about/about';
import { PremiummembersPage } from '../pages/premiummembers/premiummembers';
import { ManagementPage } from '../pages/management/management';
import { EditprofilePage} from '../pages/editprofile/editprofile';
import { SignupPage } from '../pages/signup/signup';
import { LoginPage } from '../pages/login/login';
import { InboxPage } from '../pages/inbox/inbox';
import { ProfilevisitorsPage } from '../pages/profilevisitors/profilevisitors';
import { ShortlistedPage } from '../pages/shortlisted/shortlisted';
import { ViewedcontactsPage } from '../pages/viewedcontacts/viewedcontacts';
import { SplitPane } from '../providers/split-pane';

@Component({
templateUrl: 'app.html'
})
export class MyApp {
@ViewChild('content') nav: NavController;
rootPage:any = ManagementPage;
// rootPage:any = HomePage;
selectedMenu: any=false;
selectedMenu2: any=false;

img:any;
fetched_info={'firstname':'','lastname':'','username':'','profilepic':'','gender':''}

showSplash = true; 

constructor( public toast:ToastController,platform: Platform, statusBar: StatusBar,
splashScreen: SplashScreen, public app:App, public splitPane: SplitPane,
public menu: MenuController,private ev:Events) {

platform.ready().then(() => {
this.ev.subscribe('hello', (firstname,lastname,username,profilepic,gender)=>{
this.fetched_info.firstname=firstname;
this.fetched_info.lastname=lastname;
this.fetched_info.username=username;
this.fetched_info.profilepic=profilepic;
this.fetched_info.gender=gender;
});

statusBar.styleDefault();
splashScreen.hide();
setTimeout(function(){
this.showSplash = false;
},3000);
setTimeout(()=>{
splashScreen.hide();  
},1000);
});

}

```

**Ionic Info**  
Ionic:

ionic (Ionic CLI) : 4.9.0 (C:\Users\ACER\AppData\Roaming\npm\node\_modules\ionic)  
Ionic Framework : ionic-angular 3.9.2  
@ionic/app-scripts : 3.2.1

Cordova:

cordova (Cordova CLI) : not installed  
Cordova Platforms : android 7.0.0, browser 5.0.4  
Cordova Plugins : not available

System:

NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe)  
npm : 6.5.0  
OS : Windows 10

---

<div class="post-metadata">

**Author:** ![Corbis](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/corbis/32/124922_2.png) [@Corbis](https://forum.ionicframework.com/u/Corbis)\
**Post date:** [January 31, 2019, 4:50pm UTC](https://forum.ionicframework.com/t/stucked-at-white-screen-after-splash-in-ionic-3/154706/2 "2019-01-31T16:50:26Z")

</div>

I have the same problem when using ionic v3:  
ionic cordova run android --prod = freezes on splashscreen, no error in console  
ionic cordova run android = app runs fine

any ideas?

---

<div class="post-metadata">

**Author:** ![Deepak1233](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@Deepak1233](https://forum.ionicframework.com/u/Deepak1233)\
**Post date:** [January 31, 2019, 6:24pm UTC](https://forum.ionicframework.com/t/stucked-at-white-screen-after-splash-in-ionic-3/154706/3 "2019-01-31T18:24:16Z")

</div>

you get me wrong man… it was working fine in --prod build  
it was only in --release build error of white screen…

So after deep digging and lots of changes i got it working in devices too, but its still not running in some devices. well i am not pro in ionic so i dont know whats causing the problem.

so basically i removed android platform and add it again with version 7.0.0 and i guess i was getting white screen because of api in backend part that was returning an errror … I got that when i tested each url by postman

I know i am not helping but i think somewhere you getting null values or calling anthing that is not defined at time of app loads.

so check hard good luck…
