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