Splashscreen error

Hello

I’ve got problem with cordova splashscreen plugin, it freezes on some devices but after i minimalize app and then open window again it’s closed and app wordks normally, any clue what could go wrong ??

I close splashscreen with

if(Splashscreen){
Splashscreen.hide();
}

There were several posts about splashscreen problems in the last few days. Have a look at these:

White page showing after splash screen before app load
Ios only, black screen after splashscreen
How to solve White Splash Screen Problem on Android ! =)

And best search for it yourself here on the forum.

Anything special going on in your app? Plugins?

What version of everthing are you running? Post your ionic info please.

Hello Sujan,

Thanks for the reply, i did search for other topics on the forums but none of suggestions there helped me.

My app starts with simple loginPage and then after login it’s map with some markers on it.
The trick is I ask storage if user is already looged

my plugins looks like

  <plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>
  <plugin name="cordova-plugin-whitelist" spec="1.3.1"/>
  <plugin name="cordova-plugin-console" spec="1.0.5"/>
  <plugin name="cordova-plugin-statusbar" spec="2.2.1"/>
  <plugin name="cordova-plugin-device" spec="1.1.4"/>
  <plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/>
  <plugin name="cordova-sqlite-storage" spec="~2.0.1"/>

Ionic info returns:

    Cordova CLI: 6.4.0
    Ionic Framework Version: 2.0.0-rc.4
    Ionic CLI Version: 2.2.1
    Ionic App Lib Version: 2.2.0
    Ionic App Scripts Version: 1.0.0
    ios-deploy version: Not installed
    ios-sim version: Not installed
    OS: Windows 10
    Node Version: v5.6.0
    Xcode version: Not installed

Constructor of login page is empty and my ngOnInit looks like

ngOnInit() {
    if( this.navParams.get('logout') ){
        this.presentToast('Logged out');
        setTimeout(function(){
            window.location.reload();
        },1000)
    }       
    var _ = this;

    if(Splashscreen){
        Splashscreen.hide();

        _.storage.get('logged').then( logged => {
            if(logged){
                _.showLoading();
                setTimeout(() => {
                    _.loading.dismiss();
                    _.nav.setRoot(HomePage, {'loggedIn': true})
                },1400);                
            }
        })
    } 
}

Hi.
I solved my problem, and I think the probelm was global, for everyone maybe.

Here is my ionic info :

Cordova CLI: 6.3.1 Ionic Framework Version: 2.0.0 Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0 Ionic App Scripts Version: 1.0.0 ios-deploy
version: 1.9.1 ios-sim version: 5.0.13 OS: macOS Sierra Node Version:
v6.9.5 Xcode version: Xcode 8.2.1 Build version 8C1002

Here is my package.json plugins info :

“dependencies”: {
"@angular/common": “2.2.1”,
"@angular/compiler": “2.2.1”,
"@angular/compiler-cli": “2.2.1”,
"@angular/core": “2.2.1”,
"@angular/forms": “2.2.1”,
"@angular/http": “2.2.1”,
"@angular/platform-browser": “2.2.1”,
"@angular/platform-browser-dynamic": “2.2.1”,
"@angular/platform-server": “2.2.1”,
"@angular/tsc-wrapped": “^0.5.2”,
"@ionic/storage": “^1.1.7”,
"@types/lodash-es": “^4.14.4”,
“angular2-template-loader”: “^0.6.2”,
“blocking-proxy”: “0.0.5”,
“browserify”: “^14.1.0”,
“commitizen”: “^2.9.6”,
“es6-shim”: “^0.35.0”,
“ionic-angular”: “2.0.0”,
“ionic-native”: “^2.4.1”,
“ionicons”: “3.0.0”,
“karma”: “^1.1.1”,
“lodash-es”: “^4.17.4”,
“protractor”: “^5.1.1”,
“protractor-jasmine2-screenshot-reporter”: “^0.3.3”,
“reflect-metadata”: “^0.1.3”,
“rxjs”: “5.0.0-beta.12”,
“sw-toolbox”: “^3.5.1”,
“ts-node”: “0.9.3”,
“tslint-loader”: “^3.4.2”,
“typedoc”: “^0.5.7”,
“webdriver”: “0.0.1”,
“webdriver-manager”: “^12.0.2”,
“zone.js”: “0.6.26”
},
“devDependencies”: {
"@ionic/app-scripts": “1.0.0”,
"@types/jasmine": “2.5.41”,
"@types/lodash-es": “^4.14.2”,
“angular2-template-loader”: “^0.6.0”,
“awesome-typescript-loader”: “^2.2.1”,
“better-npm-run”: “0.0.14”,
codecov.io”: “0.1.6”,
“codelyzer”: “2.0.0-beta.1”,
“commitizen”: “^2.9.5”,
“concurrently”: “2.2.0”,
“css-loader”: “^0.26.1”,
“cz-conventional-changelog”: “^1.2.0”,
“del”: “^2.2.2”,
“finalhandler”: “^0.5.1”,
“isparta”: “4.0.0”,
“istanbul-instrumenter-loader”: “0.2.0”,
“jasmine-core”: “^2.5.2”,
“jasmine-spec-reporter”: “^3.2.0”,
“json-loader”: “^0.5.4”,
“karma”: “^1.4.0”,
“karma-chrome-launcher”: “^2.0.0”,
“karma-coverage”: “^1.1.1”,
“karma-jasmine”: “^1.1.0”,
“karma-mocha-reporter”: “^2.2.2”,
“karma-phantomjs-launcher”: “^1.0.2”,
“karma-remap-coverage”: “0.1.2”,
“karma-sourcemap-loader”: “^0.3.7”,
“karma-webpack”: “1.8.1”,
“lite-server”: “2.2.2”,
“live-server”: “^1.0.0”,
“lodash-es”: “^4.17.4”,
“phantomjs-prebuilt”: “^2.1.14”,
“protractor”: “^5.0.0”,
“protractor-jasmine2-screenshot-reporter”: “^0.3.2”,
“raw-loader”: “0.5.1”,
“run-sequence”: “1.2.2”,
“serve-static”: “^1.11.2”,
“sonar-web-frontend-duplication”: “^1.0.1”,
“sonar-web-frontend-reporters”: “^2.1.0”,
“source-map-loader”: “^0.1.6”,
“standard-version”: “^4.0.0”,
“to-string-loader”: “^1.1.4”,
“ts-helpers”: “^1.1.1”,
“ts-node”: “^2.0.0”,
“tsify”: “0.16.0”,
“tslint”: “^4.0.2”,
“tslint-loader”: “^3.3.0”,
“typedoc”: “^0.5.5”,
“typescript”: “^2.0.9”,
“validate-commit-msg”: “^2.11.1”,
“webpack”: “2.2.0-rc.3”,
“xml2js”: “^0.4.17”

Try this in your app.component.ts after your constructor :

initializeApp() {
this.platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.styleDefault();
Splashscreen.hide();
});
}

and I also posted a fix to this global problem :
How to solve White Splash Screen Problem on Android ! =)