I have used “@ionic-native/app-minimize” in ionic 3 app. It is working fine in debugger mode in android device also. After publish the app to google play store using APK file “@ionic-native/app-minimize” is not working. How to fix this issue? Any help is highly appreciated. This is the code segment used to that minimization process.
this.platform.registerBackButtonAction(() => {
let currentNav = this.app.getActiveNavs()[0];
let activeView = currentNav.getActive();
if (activeView.name === 'TeacherHomePage' || activeView.name === 'LoginPage') {
this.appMinimize.minimize();
} else if (currentNav.canGoBack()) {
currentNav.pop();
} else {
this.nav.setRoot('TeacherHomePage')
}
});