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.registerBackButtonAction(()=>{ // some code },101) });