I want disable android back button on some page ..not in whole application - ionic

i want to disable the android back button on some page …not in the whole application.

i am developing the app,

I won’t stop the android back button on some pages like … after successful transaction page.

ex. enter the amount —> then enter the PIN - Press Submit —> Payment successful message ( i have already give Back button on UI )

if anyone uses the android back button on (payment success page ) back to Enter pin page --.

please help to fix the problem.

1. disable the android back button on Some pages or set action on the hardware back button

I would use lifecycle events to register and deregister back button handlers. Try searching the forums; there are many threads about this.