How to capture Cordova android hardware backbutton event from Meteor Event?

I would like to capture android hardware backbutton and trigger a modal to confirm exit app.

I can’t find a way to properly capture backbutton event from meteor/blaze template event.

Any advice? Thanks.

Lesz

This can’t be done at the template level because the event listener has to be attached to the document.

Have a look here…

https://cordova.apache.org/docs/en/4.0.0/cordova/events/events.backbutton.html