How to use the ionic-native.Splashscreen.hide function in ionic-native

To help you get started, we’ve selected a few ionic-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github crabcanon / angular2-ionic2-demo / src / app / app.component.ts View on Github external
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();
      BackgroundMode.disable();


      if (platform.is('ios')) {
        window['plugins'].sqlDB.remove('data.db', 2, this.removeDBSucceeded, this.removeDBFailed);
        window['plugins'].sqlDB.copy('data.db', 2, this.copyDBSucceeded, this.copyDBFailed);
      } else if (platform.is('android')) {
        window['plugins'].sqlDB.remove('data.db', 0, this.removeDBSucceeded, this.removeDBFailed);
        window['plugins'].sqlDB.copy('data.db', 0, this.copyDBSucceeded, this.copyDBFailed);
      } else {
        this.presentAlert(this.databseAlert);
      }
      
      this.events.subscribe('auth:customizedExpiration', (time) => {
        console.log('User is automatically logged out at ' + time);
        this.presentAlert(this.sessionAlert);
github YourName-App / MyDiary / src / app / app.component.ts View on Github external
platform.ready().then(() => {
      // Here you can do any higher level native things you might need.
      StatusBar.styleDefault();
      Splashscreen.hide();
      this.configServ.setMusicPlayed(false);

      // Listen for pause event (emits when the native platform puts the application into the background)
      platform.pause.subscribe(() => {
        this.configServ.setPauseEmitted('Y');

        if (this.configServ.getUserPin().length >= 4) {
          this.nav.setRoot(HomePage);
        }
      });
    }, (error) => {
      console.log(error);
github aaronksaunders / ionic2.0-angularfire / src / app / app.component.ts View on Github external
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();
    });
  }
github Backendless / JS-SDK / examples / messaging-service / push-notification / ionic-2 / src / app / app.component.ts View on Github external
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();

      this.initPushNotification();
    });
  }
github cfjedimaster / Cordova-Examples / ionicAuth2Social / src / app / app.component.ts View on Github external
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();

      if(this.auth.isAuthenticated()) {
        this.rootPage = HomePage;
      } else {
        this.rootPage = LoginPage;
      }

    });
  }
github wizicer / LearnJapan / ionic / src / app / app.component.ts View on Github external
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();
    });
  }
github yannbf / ionic-lottie / src / app / app.component.ts View on Github external
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();
    });
  }
github dancojocar / MA / archives / 2016-2017 / lectures / 10 / TodoApp / src / app / app.component.ts View on Github external
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();
    });
  }
github M-Ulyanov / WhereMoney / src / app / app.component.ts View on Github external
platform.ready().then(() => {
            StatusBar.overlaysWebView(true); // let status bar overlay webview
            StatusBar.backgroundColorByHexString('#3DC960'); // set status bar to white
            Splashscreen.hide();
            this.initApp();
        });
    }
github phodal / growth-ionic / app / app.ts View on Github external
platform.ready().then(() => {
      StatusBar.styleDefault();
      Splashscreen.hide();
    });
  }