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

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

问题描述

现在我知道 Chrome应用程序可以提供接近本机应用程序的体验,但我无法找到一种方式来从chrome应用程序运行本地命令。是否有任何API可以在用户授予许可后使用?如何做到这一点?



谢谢 解决方案

原理可能通过原生消息



您可以拥有专门用于与您的Chrome应用对话的本机应用,但缺点是本地组件无法与网上应用店中的应用捆绑在一起。您必须使用单独的安装程序。



请注意,上述文档适用于扩展程序,但相应的调用也在应用程序文档中提及。 >

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?

Thanks

解决方案

It is in principle possible via Native Messaging.

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天全站免登陆