从 chrome 浏览器启动我安装的应用程序 [英] launch my installed application from chrome browser

本文介绍了从 chrome 浏览器启动我安装的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是,如果安装在客户端计算机上,则从 Chrome 浏览器启动已安装的应用程序,如果未安装,则我想开始下载.chrome 的最佳推荐解决方案是什么?

My requirement is to launch my installed application from chrome browser if it is installed on client machine, If not installed then I wanted to start download. What is best recommended solution for chrome?

到目前为止我尝试过

使用过 NPAPI,但由于 chrome 弃用了 NPAPI,我无法使用.

used NPAPI, but due to deprecation of NPAPI by chrome I can't use.

已检查 PNacl 和 Pepper API 这两个 API 均不提供对本地文件系统的访问以启动应用程序.他们只是将我的 C/C++ 代码移植到浏览器中,然后在具有沙盒限制的浏览器环境中运行.

Checked PNacl and Pepper API both API not providing access to local file system to launch an application. They just port my C/C++ code in browser and run it in browser environment with sandbox restrictions.

我唯一的选择是使用本地消息传递吗?或者是否有任何其他选项可以用于从我们的 url 启动我的应用程序的简单任务,

Is it true only option i have is to use native messaging? Or is there any other option for simple task to launch my application from our url,

关于本地消息"

  1. 用户是否需要安装我的扩展程序
  2. 我需要将我的扩展程序添加到 Chrome 商店吗
  3. 如何处理非管理员用户的注册表权限
  4. 我可以在安装应用程序的同时安装 chrome 扩展吗

注意:- 发现一些提供商使用外部协议请求"来启动应用程序,但没有足够的资源我可以在哪里找到更多相关信息

Note :- Found some providers use "External Protocol Request" to launch application but there are no enough resources where can i found more about this

谢谢和问候,普拉文

推荐答案

对于它的价值,见这里 - http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/nativeMessaging/

For what its worth, see here - http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/nativeMessaging/

自述文件表明现在即使非管理员也可以添加本地消息.

the README indicates that Native Messaging can now be added even by non-Admins.

但似乎 Native Messaging 仅适用于扩展:扩展可以与本机应用程序交换消息(...)",我不认为您可以期望所有用户都这样做.

But it appears Native Messaging will only work for Extensions: "Extensions can exchange messages with native applications(...)" and I dont imagine you can expect all of your users to do that.

这篇关于从 chrome 浏览器启动我安装的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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