简体   繁体   English

使用“kiosk模式”创建Phonegap应用

[英]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. 我正在尝试创建以“kiosk模式”运行的Phonegap应用程序,该应用程序不允许用户离开或关闭应用程序,访问通知栏或使用除我们创建的应用程序之外的任何其他内容。

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. 我们的想法是,我们将一个平板电脑(三星Galaxy tab 4 10.1)整合到一个端盖中,然后将其放置在某些商店中。 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. 我确实有使用Phonegap的经验,但我不知道如何实现这一目标。 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. 到目前为止,我已经尝试了几个指南和资源,即这一个: http//www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in- android /或解决方案作为SureLock但没有成功。

The tablet we want to use: samsung galaxy tab 4 10.1 (SM-T533) 我们想要使用的平板电脑:三星galaxy tab 4 10.1(SM-T533)
Android version: 4.4.4 Android版本:4.4.4
Phonegap version: 5.1.1 Phonegap版本:5.1.1

Cordova Kiosk Mode - Cordova plugin to create Cordova application with "kiosk mode". Cordova Kiosk Mode - 使用“kiosk模式”创建Cordova应用程序的Cordova插件。 App with this plugin can be set as Android launcher. 使用此插件的应用可以设置为Android启动器。 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 https://github.com/honza889/cordova-plugin-kiosk

Kiosk mode is highly platform specific. Kiosk模式是高度平台特定的。 I'd recommend building a native app instead of using phonegap. 我建议您构建一个原生应用,而不是使用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). 如果你绝对想要使用phonegap,你必须在插件中实现这些黑客(实际上是本机代码,所以你没有获得任何东西)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 树莓派“信息亭”模式 - Raspberry Pi "Kiosk" mode 在Kiosk模式下运行JavaFX屏幕 - Run JavaFX Screen in Kiosk Mode 如何在Android 4.4中为信息亭模式锁定android主页按钮,最近的应用程序按钮和后退按钮? - How to lock android home button,recent app button and back button for kiosk mode in android 4.4? Linux Java Swing应用程序的信息亭模式 - Kiosk mode for Linux Java Swing application 如何在自助服务终端模式/锁定任务模式下将安装程序包列入白名单? - How to whitelist installer package during kiosk mode/ lock task mode? 在 android 设备(手机、平板电脑等)上使用 Kiosk 模式 - Using Kiosk mode on android device(mobile,tablets etc) Android:停止退出按钮退出LockTask / Kiosk模式 - Android: Stop Back Button From Exiting LockTask / Kiosk Mode 如何以KIOSK模式打开基于Java的Web应用程序? - How to open java based web application in a KIOSK mode? 如何配置PhoneGap Android在Windows中创建android应用? - How to configure a PhoneGap Android to create android App in Windows? 当顾客很少来的时候,为 24 小时营业的餐厅制作信息亭的好方法是什么? (唤醒锁、信息亭模式、任务锁...) - What's a good way to make a kiosk for a 24-hour restaurant when few customers come? (wakelock , kiosk mode , task lock...)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM