"Inline" installation of apps

148 views
Skip to first unread message

Mihai Parparita

unread,
Sep 23, 2011, 1:11:55 AM9/23/11
to Chromium Apps
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-installation

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

Paul Kinlan

unread,
Sep 25, 2011, 4:21:02 PM9/25/11
to Chromium Apps
Hi Guys,

I know Mihai posted about it the other day, but the inline-install API (http://dev.chromium.org/developers/design-documents/extensions/inline-installation) 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:


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 use http://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


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




--
Paul Kinlan
Developer Advocate @ Google for Chrome and HTML5

Jordonwii

unread,
Sep 25, 2011, 5:34:40 PM9/25/11
to Chromium Apps
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?
On Sep 25, 1:21 pm, Paul Kinlan <paulkin...@google.com> wrote:
> Hi Guys,
>
> 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.

John Migman

unread,
Sep 26, 2011, 7:06:34 AM9/26/11
to Chromium Apps
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 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...
Reply all
Reply to author
Forward
0 new messages