gpt4 book ai didi

java - 使用 "kiosk mode"创建 Phonegap 应用程序

转载 作者:太空宇宙 更新时间:2023-11-03 10:41:49 25 4
gpt4 key购买 nike

我正在尝试创建以“kiosk 模式”运行的 Phonegap 应用程序,该模式不允许用户离开或关闭该应用程序、访问通知栏或使用我们创建的应用程序以外的任何其他内容。

我们的想法是,我们将平板电脑 (samsung galaxy tab 4 10.1) 合并到一个端盖中,然后将其放置在某些商店中。用户是否可以访问平板电脑上的物理按钮尚未定义。

我确实有使用 Phonegap 的经验,但我不知道如何完成它。到目前为止,我已经尝试了几个指南和资源,即这个:http://www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/或 SureLock 解决方案,但没有成功。

我们要使用的平板电脑:samsung galaxy tab 4 10.1 (SM-T533)
安卓版本:4.4.4
Phonegap 版本: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

关于java - 使用 "kiosk mode"创建 Phonegap 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32185360/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com