kiosk-full-screen
v1.0.7
Published
Commontime cordova kiosk plugin.
Downloads
8
Maintainers
Readme
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
lockScreen()
releaseScreen()
fullScreen()
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();