kiosk-full-screen

1.0.7 • Public • Published

Cordova Kiosk Mode (security wrapper)

The kiosk mode is achived using Android 5+ screen pinning and lock task mode features:

  • with screen pinning, the device user can temporarily pin specific apps to the screen.
  • with lock task mode, a user can’t escape the app and the Home and Recents buttons are hidden. More information can be found here: https://developer.android.com/work/cosu.html

Important: The kiosk mode will only work if the app is installed as a device owner app.

Besides the functionalities mentioned above, this plugin also prevents the phone to be powerd off (or locked) when pressing the power off button.

This plugin is for Android only.

Installation

npm install kiosk-full-screen

npm --save kiosk-full-screen

Methods available

  1. lockScreen()
  2. releaseScreen()
  3. fullScreen()
  4. wakeUp()

Usage (Ionic 3)

In a TypeScript file, declare the window variable like this:

declare var window: any;

then the methods can be called like this:

window.kiosk.lockScreen();

Package Sidebar

Install

npm i kiosk-full-screen

Weekly Downloads

2

Version

1.0.7

License

MIT

Last publish

Collaborators

  • sergiu-oanea