jespinosar
jespinosar

Reputation: 49

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?

Upvotes: 4

Views: 2317

Answers (1)

jcesarmobile
jcesarmobile

Reputation: 53301

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

Upvotes: 3

Related Questions