I’m using the typical way to detect app pause / resume in a Cordova app. But this does not work with capacitor:
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.splashScreen.hide();
console.log('App is ready');
this.platform.pause.subscribe(test => {
console.log('App paused.');
});
this.platform.resume.subscribe(test => {
console.log('App resumed.');
});
});
}
the console.logs are never printed…