vicky sharma
vicky sharma

Reputation: 67

Chrome Extension Inline install procedure

UPDATE: Google has disabled inline installation feature for Chrome extensions.

<link rel="chrome-webstore-item" href="chrome.google.com/webstore/detail/itemID">

I have added above code on my html page (my website hit by user) which is associated with my chrome extension already published in chrome store and javascript function chrome.webstore.install().

Will it really make user to install the chrome extension in his computer?

Upvotes: 2

Views: 9314

Answers (1)

Xan
Xan

Reputation: 77482

The documentation: https://developer.chrome.com/webstore/inline_installation

First off, for this to work, you will need to verify the website as something you own via Webmaster Tools.

Verified site requirement

For security reasons, inline installations can only be initiated by a page on a site that is verified (via Webmaster Tools) as being associated with that item in the Chrome Web Store. Note that if you verify ownership for a domain (for example, http://example.com) you can initiate inline installation from any subdomain or page (for example, http://app.example.com or http://example.com/page.html).

Once you verified your site, you need to edit your extension listing via Developer Console to select that the extension is associated with your (verified) site:

Developer Dashboard


If you have done all that, added the link tag and triggered the install() function (which, if I remember correctly, has to be triggered by a user action, like a click handler), the user will be presented with a small dialog describing your extension, something like that:

Example

There, they can accept or deny without opening Web Store. You cannot silently install an extension, but you can save the user the trouble of going to the Store listing.

Upvotes: 10

Related Questions