简体   繁体   中英

Ionic Angular app going to login screen on click of back button

I am developing an ionic app with Angular and facing one issue related to android device back button.

when I am installing app from android studio and on using back button app minimize function (cordova-plugin-appminimize) is working fine and able to reload the application with no issues.

but when I am installing by sharing apk and on click of back button app is getting minimized and after reloading app is navigating to login screen.

Please let me know if you have faced any similar issue and what was the resolution.

Thanks

Use a Routing guard(canActivate) to prevent this. or You can also handle the back button event

see back button handling in ionic

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM