"Inline" installation of extensions

510 views
Skip to first unread message

Mihai Parparita

unread,
Sep 23, 2011, 1:11:59 AM9/23/11
to Chromium-extensions
If your extension is hosted in the Chrome Web Store, you may be
interested in the "inline install" option that is targeted for Chrome
15 (currently in the beta channel):

http://dev.chromium.org/developers/design-documents/extensions/inline-installation

This allows you to prompt users to install store-listed extensions
without leaving your site.

Feedback (and bug reports, if any) are appreciated.

Thanks,
Mihai

Brandon Thomson

unread,
Sep 23, 2011, 2:18:56 PM9/23/11
to Chromium-extensions
Really happy to see official support for this!

Any chance we can get the "Add to Chrome" strings for all the locales
in a json file or something?
--
Brandon Thomson
www.bthomson.com

> --
> You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
> To post to this group, send email to chromium-...@chromium.org.
> To unsubscribe from this group, send email to chromium-extens...@chromium.org.
> For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
>
>

John Migman

unread,
Sep 23, 2011, 1:46:32 AM9/23/11
to Chromium-extensions
I have a problem with using it.

I had an app - https://chrome.google.com/webstore/detail/ofmbbmbcienhnnpbjihhbnakgkjiiino
I put a link tag in head of this site.
chrome.webstore.install() called by onClick=() event.

Error: Cannot call method 'install' of undefined

P.S. Chrome Beta or Chrome Canary both.

On 23 сен, 11:11, Mihai Parparita <mih...@chromium.org> wrote:
> If your extension is hosted in the Chrome Web Store, you may be
> interested in the "inline install" option that is targeted for Chrome
> 15 (currently in the beta channel):
>
> http://dev.chromium.org/developers/design-documents/extensions/inline...

Mihai Parparita

unread,
Oct 19, 2011, 5:43:45 PM10/19/11
to John Migman, Chromium-extensions
On Thu, Sep 22, 2011 at 10:46 PM, John Migman <mig...@gmail.com> wrote:
Error: Cannot call method 'install' of undefined
 
Apologies for the late reply. If this is still happening, can you check that you don't have some script overriding the "chrome" object in your? If possible, can you create the simplest possible webpage that exhibits this problem?

Mihai

rcotrina94

unread,
Oct 26, 2011, 5:36:33 PM10/26/11
to Chromium-extensions
Hi! I have a web app » https://chrome.google.com/webstore/detail/hnmdbeamhkbhfobfmoaemhpfcgejlbif
for http://physicsgames.tk and when i tried to use the inline
instalation i get nothing... what am i doing wrong?

Sorry for my English, i'm a spanic speaker

On Oct 19, 4:43 pm, Mihai Parparita <mih...@chromium.org> wrote:

Mihai Parparita

unread,
Oct 26, 2011, 5:43:38 PM10/26/11
to rcotrina94, Chromium-extensions
The <link rel="chrome-webstore-item"> link must be in the <head> section of your page. You have a <description> element inside the <head> section, but <description> is an unknown tag which causes the <head> section to get closed early.

You can check this by looking at your page in the Chrome Dev Tools inspector; the <head> tag ends much sooner than it should.

I believe that removing the <description></description> lines should fix things.

Mihai

rcotrina94

unread,
Oct 26, 2011, 6:01:49 PM10/26/11
to Chromium-extensions
Thanks a lot! I got it! heheh

Thanks Mihai, Regarts from Peru!

Richard

On Oct 26, 4:43 pm, Mihai Parparita <mih...@chromium.org> wrote:
> The <link rel="chrome-webstore-item"> link must be in the <head> section of
> your page. You have a <description> element inside the <head> section, but
> <description> is an unknown tag which causes the <head> section to get
> closed early.
>
> You can check this by looking at your page in the Chrome Dev Tools
> inspector; the <head> tag ends much sooner than it should.
>
> I believe that removing the <description></description> lines should fix
> things.
>
> Mihai
>
>
>
>
>
>
>
> On Wed, Oct 26, 2011 at 2:36 PM, rcotrina94 <thefighte...@gmail.com> wrote:
> > Hi! I have a web app »
> >https://chrome.google.com/webstore/detail/hnmdbeamhkbhfobfmoaemhpfcge...
> > forhttp://physicsgames.tk and when i tried to use the inline
> > instalation i get nothing... what am i doing wrong?
>
> > Sorry for my English, i'm a spanic speaker
>
> > On Oct 19, 4:43 pm, Mihai Parparita <mih...@chromium.org> wrote:
> > > On Thu, Sep 22, 2011 at 10:46 PM, John Migman <mig3...@gmail.com> wrote:
> > > > Error: Cannot call method 'install' of undefined
>
> > > Apologies for the late reply. If this is still happening, can you check
> > that
> > > you don't have some script overriding the "chrome" object in your? If
> > > possible, can you create the simplest possible webpage that exhibits this
> > > problem?
>
> > > Mihai
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org.

John Migman

unread,
Jun 20, 2012, 5:29:24 AM6/20/12
to chromium-...@chromium.org, John Migman
> If this is still happening, can you check that you don't have some script overriding the "chrome" object in your? 

Hi! How i can check this? 

Mihai Parparita

unread,
Jun 20, 2012, 1:34:52 PM6/20/12
to John Migman, chromium-...@chromium.org
In the Chrome DevTools, run dir(chrome). It should give you an expandable Object display, and you can look for the "app" and "webstore" properties.

Mihai

On Wed, Jun 20, 2012 at 2:29 AM, John Migman <mig...@gmail.com> wrote:
> If this is still happening, can you check that you don't have some script overriding the "chrome" object in your? 

Hi! How i can check this? 

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/E0VO3qM86C4J.

To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

Purav Mehta

unread,
Jun 21, 2014, 1:25:52 AM6/21/14
to chromium-...@chromium.org, mih...@chromium.org
Hello Sir,,

My Site

 

 http://chipsseller.in/


On Footer i putted link - add to chrome is not working i putted link on header


and this one in footer

      <li><a href="javascript:chrome.webstore.install();">Add to Chrome</a></li>    

then can u please tell me whats d issue 

Thanks in advance , have a nice day 

James Mortensen

unread,
Jun 21, 2014, 1:58:50 AM6/21/14
to Purav Mehta, Chromium-extensions, mih...@chromium.org
Try getting rid of the "javascript:" in the href, then change href to onclick.  Using JavaScript in the href is an outdated construct from 10 years ago....

<button onclick="chrome.webstore.install()" id="install-button">Add to Chrome</button>
That is a better example.  Just read the docs for more info.  https://developer.chrome.com/webstore/inline_installation.  Good luck.



James



--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.

To post to this group, send email to chromium-...@chromium.org.
Reply all
Reply to author
Forward
0 new messages