Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
264 views
in Technique[技术] by (71.8m points)

launch my installed application from chrome browser

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...