Android Hardware BackButton Programming

Currently, I’m using Platform.registerBackButtonAction to program the hardware backbutton behavior.

This is great but I still like Ionic’s implementation of the backbutton so this is what I want:

when backbutton is pressed:

  1. Go thru my wrapper of the backbutton action (just closing side-menu if its open)
  2. Go thru Ionic’s implementation of the backbutton (which tracks navigation history and back paddles)

I can’t seem to make this work. Is there anyway to achieve this?

1 Like