How to install Chrome Extension from the Email link sent to user?

$0
=
$0
+
$0
No specific Bitcoin Bounty has been announced by author. Still, anyone could send Bitcoin Tips to those who provide a good answer.
0

How to programmatically trigger an installation of Chrome browser extension from the link embedded into email message that our website sends to our users? We want to have as few steps as possible to provide a streamlined user experience. Our extension is hosted in a Chrome Web Store. Please help!

1 Answer - total earned - 0 BTC ($0 USD)

1
=
0
=
$0
Everyone, even non-registered users could send Bitcoin Tips to YOU if they are inspired by your answer!

1. Email Message

In your email message, include the link to the assisting webpage hosted in your website.

2. Assisting Webpage (in your site)

In that page, include the following HTML and JavaScript code. Also, please carefully follow the instructions for filling in the <link> tag with your own Extension ID - pls read in the HTML comments below:

<html>
    ...
    <head>
    ...
    <!--  Replace 'ejidjjhkpiempkbhmpbfngldlkglhimk' with your extension ID - you could find it in the browser address bar when navigated to your extension page in Chrome Web Store - it is a string of 32 Latin characters at the end of the URL in the address bar -->
    <!--  Do NOT just copy the browser URL - instead, copy the ID value from the URL in the address bar and paste the ID value into the LINK tag below -->

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

    <body>
    ...
   <!-- for security reasons, the install() function below must ONLY be called as a result of explicit user action, like inside the 'onclick' event handler. It would not work otherwise  -->
    <button onclick="chrome.webstore.install()" id="install-button"> Click to install %MyExtension% </button>
    ...
    </body>
</html>

3. Must verify your site via Webmaster Tools

For security reasons, the website that hosts your Assisting Page must be verified via Webmaster Tools as being associated with that item in the Chrome Web Store, or the install() function would not work.

4. More Information

For more information, like communicating between Chrome Extension and installation page, checking if extension is already installed, passing some specific parameters to the installed Extension, please go to this link:

https://developer.chrome.com/webstore/inlineinstallation

SEND BITCOIN TIPS
1

Post Answer


Will Bitcoin Tipping become a new Internet Culture?


Please share our story! THANK YOU!