how to android hardware back button

hi guys, is fuse provide any solution to handle hardware back button? or we need to use foreign code?


and for other buttons:

<OnKeyPress Key="MenuButton"></OnKeyPress>


Is it also possible to run a js function on back button?

I believe so:

  <CallBack Handler="{someFunction}" />

and in your js:

function someFunction() {
 // do stuff

module.exports = {
  someFunction: someFunction

You might not even need the CallBack a Handler on the OnBackButton should work as well

<OnBackButton Handler="{someFunction}" />

Works like a charm! thanks

Is it also possible to close the app OnBackButton?

There’s a user project showing how you can do that here: