ionic how to block back button
this.platform.backButton.subscribe(() => {
// do something here
});
ionic how to block back button
this.platform.backButton.subscribe(() => {
// do something here
});
ionic back button exit app
/*
Ionic / Angular
-> First make sure you have in package.json that package "@capacitor/app"
npm install @capacitor/app
-> Second in the Component 'AppComponent' add
*/
import { Platform } from '@ionic/angular';
...
export class AppComponent {
constructor(private platform: Platform) {
this.initializeApp();
}
initializeApp() {
this.platform.ready().then(async () => {
...
this.platform.backButton.subscribe(() => {
// alert will popup when backButton clicked
alert('backButton subscribe');
});
});
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us