Thanks Paul. This looks really useful, and I'll be messing with it
later today. I'll report any issues or suggestions I have afterward.
Are there any plans to allow paid apps to do this? With Google
Checkout integration I presume?
> I know Mihai posted about it the other day, but the inline-install API (
http://dev.chromium.org/developers/design-documents/extensions/inline...
> ) is a really important part of the things you can do to drive more installs
> of your app. It is a simple API to use and you can combine it with the
> chrome.app.isInstalled API to directly target only users who have not
> installed your app and are able to inline install - below is an example:
>
> var app_url = "
https://chrome.google.com/webstore/detail/pndpgaogppgnfdnagodccjlhfjg...";
>
> installLink.addEventListener("click", function(e) {
> if(chrome && chrome.webstore && chrome.webstore.install &&
> chrome.app.isInstalled === false) {
> e.preventDefault();
> chrome.webstore.install(app_url,
> function() { installLink.innerText = "Sweet. Thanks!"; }, // hide
> the window
> function() { window.location = app_url; } // Send the user to the
> page.
> );
> return false;
> }
>
> }, false);
>
> The above code could be dropped in to your existing homepage and attached to
> the links you have to your app in the Chrome Web Store (also add the <link
> rel> element required in).
>
> Get your feedback in for the API so we can make it even better!
>
> Alternatively, if you don't want to code it you can always usehttp://
badgemator.appspot.com/which will give you all the script you need
> and includes a styleable popup, detection of the installation of the app,
> and a cancel button as to not annoy your users. If you have any patches or
> suggestions the code is here:
https://github.com/PaulKinlan/badgemator
>
> P
>
>
>
> ---------- Forwarded message ----------
> From: Mihai Parparita <
mih...@chromium.org>
> Date: Fri, Sep 23, 2011 at 6:11 AM
> Subject: [cws-apps] "Inline" installation of apps
> To: Chromium Apps <
chromium-a...@chromium.org>
>
> If your app 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...
>
> This allows you to prompt users to install store-listed hosted and
> packaged app without leaving your site.
>
> Feedback (and bug reports, if any) are appreciated.
>
> Thanks,
> Mihai
>
> --
> You received this message because you are subscribed to the Google Groups
> "Chromium Apps" group.
> To post to this group, send email to
chromium-a...@chromium.org.
> To unsubscribe from this group, send email to
>
chromium-apps+unsubscr...@chromium.org.
> For more options, visit this group athttp://
groups.google.com/a/chromium.org/group/chromium-apps/?hl=en.