I want to disable all hardware buttons prevent application output

Asked

Viewed 283 times

2

What I need to do is disable the Android hardware buttons (using Ionic), to prevent the application from closing, prevent going back to the main Android page or leaving the application anyway.

I want to disable the back, home and task buttons, if possible, the button that locks the device as well.

It is possible?

I need this for a registration form (a device for the public in a store). I don’t want people to close the app or access the Android menu in any way

1 answer

1


Take a look at Android’s Kiosk mode think it’s what you need https://developer.android.com/work/dpc/dedicated-devices.

If that’s right, Cordova has one plugin that does this.

A Cordova plugin to create an application with the "kiosk mode". An application with this plug-in can be set as an Android initiator. It locks hardware buttons and status bar, so the user can’t close it until it is prompted.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.