Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
platform.ready().then(function () {
// 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(function () {
_this.configServ.setPauseEmitted('Y');
if (_this.configServ.getUserPin().length >= 4) {
_this.nav.setRoot(HomePage);
}
});
}, function (error) {
console.log(error);
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();
});
}
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.db.connect();
this.rootPage = HomePage;
} else {
this.rootPage = LoginPage;
}
});
}
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();
});
}
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();
});
}
private onReady(): void {
// 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();
}
platform.ready().then(function () {
// 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();
});
}
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();
});
}
platform.ready().then(() => {
StatusBar.styleDefault();
Splashscreen.hide();
menuCtrl.enable(true);
this.handleRoot();
this.handleNetworkChanges();
});
this.queueService.setupQueueListener();
platform.ready().then(() => {
StatusBar.styleDefault();
});
}