cordova-plugin-kiosk-device-owner

1.1.1 • Public • Published

cordova-plugin-kiosk-device-owner

This plugin provides functionality for managing kiosk mode on Android devices. It allows developers to enable and disable kiosk mode, as well as configure various device management parameters. This package is useful for developers creating applications for specialized devices, such as self-service terminals or devices for educational institutions.

INSTALL

## to install
cordova plugin add cordova-plugin-kiosk-device-owner

## run your app on device
# than run this command in order to set your app as device owner
adb shell dpm set-device-owner your.app.package/io.github.gallyamow.kiosk_plugin.KioskDeviceAdminReceiver

## to see current device owner
adb shell dumpsys device_policy | grep "admin"

## to reset current device owner (works only for  `android:testOnly="true"` apps)
adb shell dpm remove-active-admin your.app.package/io.github.gallyamow.kiosk_plugin.KioskDeviceAdminReceiver

USAGE

async function onDeviceReady () {
  //call to lock
  await KioskMode.lock()

  // call to unlock
  await KioskMode.unlock()

  // reset device owner (development purposes only)
  await KioskMode.clearDeviceOwner()
}

There are some additional options, see KioskOptions.

After locking, you should see something like

pinned

SEE

Package Sidebar

Install

npm i cordova-plugin-kiosk-device-owner

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

107 kB

Total Files

25

Last publish

Collaborators

  • gallyamow