📜 ⬆️ ⬇️

Installing Chrome extensions and applications from the developer’s site

Last week, we announced the introduction of new security measures to identify programs that violate Chrome’s rules for installing browser extensions.

Using standard mechanisms to install Chrome extensions is beneficial not only for users, but also for developers. Consider the installation of extensions from the developer’s site as an example.

With this technology, you can give Chrome users the ability to install an extension or application directly through your site’s UI. This is not only clearer for the user (no need to go to the Chrome Web Store page, initiate the installation there, then return to the developer’s site), but also allows you to significantly increase the number of extensions / application downloads.
')
How does installing from a site affect application success?


Implementing the installation from the site is very simple:

  1. Link to your app in the Chrome Web Store.
  2. Write a small script to check if the client browser supports all the features your application needs (WebGL support, Web Audio API , etc.). The Modernizr library is great for this. On Habré has already been described in detail about her.
  3. Call the JS method to initialize the installation process.

image

When users install the application, they will see the installation confirmation dialog (as in the image above). As in the dialog that appears when installing directly from the Chrome Web Store, all permissions that your application requests are listed here. In addition, the dialogue indicates the rating of the application in the Chrome Web Store and the number of users so that users have an idea of ​​the application they are installing.

Users simply click on the “Add” button. And everything is ready, do not even need to leave your site.

Detailed documentation on the use of the installation from the site can be found here . If you have any questions, you can contact us through the developer forum .

Source: https://habr.com/ru/post/178119/


All Articles