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

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

问题描述

我的要求是,如果它安装在客户机上,从chrome浏览器启动我的已安装应用程序,如果没有安装,那么我想开始下载。什么是最好的铬合金推荐解决方案?



我试过下面的票价



使用NPAPI,但由于贬值我无法使用NPAPI。



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



是否只有我选择的选项是使用本地消息?或者是否有任何其他选项可用于从我们的URL启动我的应用程序,



关于原生消息


  1. 用户是否需要安装我的扩展程序

  2. 是否需要将扩展​​程序添加到Chrome商店 如何处理非管理员用户的注册表权限

  3. 我是否可以将扩展程序安装到chrome以及我的应用安装中



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



感谢和问候,
Pravin

解决方案

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


README表示现在可以通过非管理员添加本地消息传递。



但是,似乎本机消息传递仅适用于扩展:扩展可以与本机应用程序交换消息(...),我不认为你可以期待所有的用户这样做。


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?

So fare i tried following

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

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.

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,

Regarding "Native Messaging"

  1. Do users need to install my extension
  2. Do i need to add my extension to chrome store
  3. How to deal with Registry permissions for non admin users
  4. Can i install extension to chrome along with my app installation

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

Thanks and Regards, Pravin

解决方案

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.

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