chrome 应用程序可以启动本地程序吗? [英] Can a chrome application launch local program?

查看:55
本文介绍了chrome 应用程序可以启动本地程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在 chrome 应用程序 可以提供接近原生应用程序的体验,但我还没有找到从 Chrome 应用程序运行本地命令的方法.是否有任何 API 可以在用户授予权限后使用?这怎么办?

I now that chrome applications can deliver an experience close to that of native applications, but I could not find a way yet to run a local command from a chrome application. Is there any API for this that could used after the user has given permission? How can this be done?

谢谢

推荐答案

原则上可以通过 本地消息传递.

您可以拥有一个专门设计用于与您的 Chrome 应用通信的本机应用,但缺点是本机组件无法与 Web Store 中的应用捆绑在一起.您必须使用单独的安装程序.

You can have a native app specifically designed to talk to your Chrome app, but the downside is that the native component cannot be bundled with the app in the Web Store. You'll have to use a separate installer.

请注意,上述文档是针对扩展的,但应用文档中也提到了相应的调用.

Note that the above documentation is for extensions, but the corresponding calls are mentioned in the apps documentation as well.

这篇关于chrome 应用程序可以启动本地程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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