Search code examples
google-chrome-extensionnpapifirebreath

Chrome : Display image that when clicked launches external Windows app


i want to develop an extension in Chrome that will display an image above an html element that when clicked will launch an external Windows app.

Is it necessary to develop a NPAPI Plugin for such a thing?

Is there a simpler way to call an external app with Chrome?

Do you know any good and simple tutorials for NPAPI Plugin Development?


Solution

  • The Windows app can register a custom protocol handler. You can register a custom protocol for the app that will pass the image URL to the app. E.g. myapp://example.com/img.png or something similar.

    A good example of this is iTunes. It registers itms and online app pages offer to open iTunes to the app specified. The URL opened is itms://itunes.apple.com/us/app/google+/id447119634?mt=8.