Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Back Button closes the app in Capacitor 3

I updated to Capacitor 3.0.1 with angular, but everytime I press hardware back button it closes the entire app... I expect the older behavior, close push page, etc. what can I do?

like image 921
jespinosar Avatar asked Oct 30 '25 17:10

jespinosar


1 Answers

Install @capacitor/app plugin

https://capacitorjs.com/docs/apis/app

I recommend reading the upgrade guide, it’s mentioned there https://capacitorjs.com/docs/updating/3-0

like image 166
jcesarmobile Avatar answered Nov 02 '25 08:11

jcesarmobile



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!