简体   繁体   中英

Create Phonegap app with “kiosk mode”

I am trying to create Phonegap app that runs in a "kiosk mode" that won't allow the user to either leave or close the app, have acces to the notification bar or use anything else than the app we created.

The idea is that we incorporate a tablet (samsung galaxy tab 4 10.1) in an endcap which will then be placed in certain stores. Whether or tot the physical buttons on the tablet will accessible to the user has not be defined yet.

I do have experience with Phonegap but i have no idea on how to accomplish this. So far i have tried several guides and resources, ie this one: http://www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/ or solutions as SureLock but without succes.

The tablet we want to use: samsung galaxy tab 4 10.1 (SM-T533)
Android version: 4.4.4
Phonegap version: 5.1.1

Cordova Kiosk Mode - Cordova plugin to create Cordova application with "kiosk mode". App with this plugin can be set as Android launcher. If app starts as launcher, it blocks hardware buttons and statusbar, so the user cannot close the app until the app request it.

https://github.com/honza889/cordova-plugin-kiosk

Kiosk mode is highly platform specific. I'd recommend building a native app instead of using phonegap.

If you absolutely want to use phonegap you'd have to implement these hacks inside a plugin (which is in fact native code, so you don't gain anything).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM