为什么此Google Chrome(托管)应用程序对信息亭模式无效? [英] Why is this Google Chrome (Hosted) App invalid for Kiosk mode?

查看:140
本文介绍了为什么此Google Chrome(托管)应用程序对信息亭模式无效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试用我的Chrome图书制作一个信息亭模式的应用.但是,当我进入管理信息亭应用程序"并为我的应用程序输入Chrome商店URL时,会出现无效的应用程序"错误,但是如果我只是从商店中安装应用程序,那么它的安装就可以了(尽管它没有不会显示扩展程序"页面,而是在应用程序菜单中显示.)

I have been trying to make a Kiosk Mode App from my Chrome book. But when I go into the "Manage Kiosk Applications" and enter in the Chrome Store URL for my app, I get a "Invalid Application" error, but if i just install the app from the store, it installs just fine (though it doesn't appear Extension page, but does in the applications menu).

所以我认为我对App清单所做的操作不正确.这是我的清单(只是更改了名称和网址,因为它是私人应用程序)

So I assume I have done something incorrectly with App manifest. here is my manifest (just changed the names and urls as it's private application)

{
  "name": "App Name",
  "description": "App Description",
  "manifest_version": 2,
  "version": "1",
  "app": {
    "urls": [
      "http://my.domain.com/"
    ],
    "launch": {
      "web_url": "http://my.domain.com/app.html"
    }
  },
  "icons": {
    "128": "icon_128.png"
  },
  "kiosk_enabled": true
}

据我了解,我只需要清单中包含的"kiosk_enabled": true.有人知道我做错了吗?

From what I understood I just needed the "kiosk_enabled": true included in the manifest. Does anyone know what I have done wrong?

推荐答案

目前尚无据可查,但是您的应用在Chrome中无法使用信息亭模式.我和您一直处于同一个圈子,只有经过大量研究,我才能陈述以上几点-我在研究过程中发现了这个老问题,现在返回以添加适当的答案,以期将来节省其他人的工作.

This is currently not well documented but your app is invalid for kiosk mode use in Chrome. I have been through the same circle as you and only after much research am I able to state the above - I found this old question during my research and am now returning to add a proper answer in the hope of saving others work in the future.

您创建的应用程序的类型称为 Hosted App -这些应用程序基本上只是现有网站的快捷方式.它们包含在manifest.jsonapp部分中:

The type of app you have created is called a Hosted App - these apps are basically just shortcuts to existing Web sites. They contain this in the app part of the manifest.json:

"app": {
  "urls": ["http://mydomain/homepage/"],
  "launch": { "web_url": "http://mydomain/homepage/" }
},

我希望能够链接到一些文档,该文档指出不能明确启用托管应用程序的信息亭,但目前还没有.不过,Google支持已向我证实了这一事实,并且已创建了一个内部问题来改进文档.

I'd love to be able to link to some documentation that states hosted apps cannot be kiosk enabled definitively, but currently there is none. This fact has been confirmed to me by Google support though and an internal issue has been created to improve the documentation.

您可以将此应用程序添加到CWS中的事实归因于在提交应用程序时对此事实缺乏验证,目前还创建了内部票证,因此将来的某个时候也将得到解决.如果您尝试将应用手动添加到Chrome(不使用CWS),则实际上会得到正确的验证,添加将失败并显示错误消息. Windows上的消息似乎表明托管的应用程序无法启用信息亭,其他平台上没有这样的消息,但消息确实如此.

The fact that you can add this app into the CWS is down to lack of validation of this fact on app submission, this currently also has an internal ticket created so at sometime in the future will also be fixed. If you attempt to add the app into Chrome manually (not using CWS) you actually get proper validation and the add will fail with an error message. The message on Windows appears to state hosted apps cannot be kiosk enabled, other platforms do not have a message that is quite so informative but it does fail.

这篇关于为什么此Google Chrome(托管)应用程序对信息亭模式无效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆