I am trying to deal with an issue on phonegap-plugin barecode scanner.
This plugiin when clicking on the hardware back button is closed but back event is propagated and make the ionic app closed because I am on the main page.
The issue is due to the plugin itself as for cordova camera this issue do not exists.
I saw that I can register with Platform I can register to the backbutton event
However What I would like is:
1/ When entering in the view save the previous event
2/ Replace the event by an empty event to prevent closing
3/ When leaving the view resubscribe with original one
I don’t know how to get this previous event in ionic 3
Do you have an idea