export class HomePage implements OnInit {
subscribe: any;
constructor(public Platform: Platform, ) {
this.subscribe = this.Platform.backButton.subscribeWithPriority(666666, ()
=> {
if (this.constructor.name == "HomePage") {
if (window.confirm ("Do you wanna exit the app?")) {
navigator["app"].exitApp(),
} //this is giving error on exit app
}
});
}
ngOnInit() {
}
}