简体   繁体   English

适用于Android的Cordova信息亭模式

[英]Cordova Kiosk mode for android

I want to code a cordova app in kiosk mode. 我想在信息亭模式下编码cordova应用。 I have found this Solution . 我找到了这个解决方案

But if I add the code I am getting a Error on create the apk. 但是,如果我添加代码,则在创建apk时会出现错误。

C:\temp\ksl\platforms\android\cordova\node_modules\q\q.js:126
                    throw e;
                          ^
Error code 1 for command: cmd with args: /s /c "C:\temp\ksl\platforms\
adlew cdvBuildDebug -b C:\temp\ksl\platforms\android\build.gradle -Dor
aemon=true"
ERROR building one of the platforms: Error: C:\temp\ksl\platforms\andr
a\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: C:\temp\ksl\platforms\android\cordova\build.bat: Command failed
 code 1
    at ChildProcess.whenDone (C:\Users\ebay\AppData\Roaming\npm\node_m
dova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1087:5) 

Without your code if got no error. 没有您的代码,如果没有错误。

Thanks for your help 谢谢你的帮助

This functionality is now included in Android 5.0 Lollipop core. 此功能现已包含在Android 5.0 Lollipop核心中。 It's called pinning and you can access it via parameters->security->pinning. 这称为固定,您可以通过参数->安全性->固定来访问它。 Good luck 祝好运

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

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