Installing Chrome Inline for extension does not work

I am trying to use the new built-in chrome installation function for extensions (see here http://code.google.com/chrome/webstore/docs/inline_installation.html ).

I can't get it to work unfortunately, and I have very few clues. I added a link element to the head element

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

and i call

chrome.webstore.install();

in jquery event handler. I also checked my domain, however, I am testing this on a local machine, but have a subdomain pointing to my localhost (i.e. testing on dev.getbentobox.com, which maps to localhost in my hosts file, if that matters) .

When going through js using the chrome debugger, chrome.webstore.install () is called and the function is defined. However, nothing happens - it is not installed, no javascript exception, no console printing, nothing.

any ideas?

+6
source share
2 answers

Your Chrome Web Store item doesn’t show a verified site. If you compare it to the "We Heart It" extension , which can be embedded from http://weheartit.com/heart-button , it has a green check: "from weheartit.com". You will need to edit the web store item and link your verified site to the item.

+8

2018 ( Chrome 71) Google . - Chrome Web Store.

: https://developer.chrome.com/extensions/inline_faq#change_dec18

M71 ( 2018)?

M71, Chrome chrome.webstore.install() , . API JavaScript TypeError. API .

0

All Articles