このページは大阪弁化フィルタによって翻訳生成されたんですわ。

翻訳前ページへ


Overview - Chrome Web Store - Google Code
The Wayback Machine - http://web.archive.org/web/20110426141843/http://code.google.com/chrome/webstore/docs/index.html
My favorites | English | Sign in

Chrome Web Store (Labs)

Overview

The Chrome Web Store lets you publish apps where Google Chrome users can easily find them. The store's primary purpose is to help Chrome users find apps. It does this by supporting search, by providing browsable categories of apps, and by displaying lists of various kinds, both curated and autogenerated. User ratings and reviews are used to rank apps.

Contents

  1. App concepts
  2. Charging for your app
    1. Providing some functionality for free
    2. Using the built-in system: Chrome Web Store Payments
  3. Protecting your app from unauthorized use
    1. Using the Licensing API to check for payment
    2. Encouraging payment
  4. Uploading and publishing your app
  5. What next?

Back to top

App concepts

With the Chrome Web Store, you can publish three kinds of items:

Apps

Contains installable web apps. An installable web app can be a normal website with a bit of extra metadata; this type of app is called a hosted app. Alternatively, an installable web app can bundle all its content into an archive that users download when they install the app; this is a packaged app. Both hosted and packaged apps have icons in Chrome's New Tab page, and most users shouldn't be able to tell the difference between them without looking at the address bar.

Before publishing a hosted app in the store, you must verify that you own the website that hosts the app's content. Packaged apps might have some association with a website, but you have the option of designing them so that they don't rely on the web at all.

Themes
Contains themes for Chrome, which change the way the browser looks. Before the store was public, themes were published in the Themes Gallery and Extensions Gallery.
Extensions
Contains extensions for Chrome, which change how the browser behaves and, in a limited way, how it looks. Before the store was public, extensions were published in the Extensions Gallery.

If your extension seems more like a website than a small browser add-on, consider making it a packaged app. Packaged apps are implemented as extensions that have the additional ability to present an app-like interface.

Terminology note: When this documentation talks about an app without giving any other details, it means any of the above—an installable web app (either hosted or packaged), a theme, or an extension.

Every app has a manifest, and most likely icons, that you put into a ZIP file and upload to the Chrome Developer Dashboard. The Chrome Web Store takes the contents of this ZIP file and puts them in a cryptographically signed .crx file. Users download this .crx file when they click the Install button for your app.

To create installable web apps and extensions, you should be familiar with HTML, JavaScript, and CSS. If you're targeting Chrome exclusively, you can depend on HTML5 and the other emerging APIs that Chrome supports.

For detailed information on creating apps, see the developer doc for the type of app you're interested in:

If you aren't sure what kind of app you need to write, see Choosing an App Type.

Thumbnail of decision flowchart from Choosing an App Type

Back to top

Charging for your app

The Chrome Web Store has a built-in payment system called Chrome Web Store Payments that you can use if it meets your needs. Alternatively, you can either provide the app for free or use your own payment system.

For each hosted app you publish, you can choose from any of the following payment options:

  1. Free
  2. One-time payment with the Chrome Web Store Payments
  3. Monthly or yearly subscription with Chrome Web Store Payments
  4. Free trial with b or c
  5. Custom payment solution

Note: Although packaged apps and extensions can use Chrome Web Store Payments, it's difficult for them to use the Licensing API securely. Themes have no executable code, so they can't use the Licensing API.

Providing some functionality for free

A freshly installed app should always provide something useful or interesting, even if the user hasn't paid yet. If the first page the user sees is useless—nothing but a payment wall, for example—the user is likely to uninstall your app, and you might get some scathing reviews.

If you list your app as free, then it should perform its function without asking for payment from the user. See the policy document for details.

If you charge for your app, we encourage you to provide a free trial version with an upgrade path to the paid version. This model is sometimes called freemium.

Note: For now, only hosted apps can provide a free trial version. Later, you'll be able to support free trials for packaged apps by uploading two versions of the app.

A free trial of an app should provide a basic level of functionality that lets the user gauge the usefulness of the app. Examples:

  • Games: a few game levels
  • Productivity apps: a limited but still useful set of features
  • Content apps: a subset of available content

Using the built-in system: Chrome Web Store Payments

To use Chrome Web Store Payments, you must open a merchant account for Google Checkout, and you must associate that account with the store. For details, see Register for a Google Checkout Merchant account.

When someone buys your app using Chrome Web Store Payments, Google charges you a fee of 5% + a small fixed fee per transaction. You must choose a price for each location where you sell your app; for the US, the minimum price is $1.99. See Choosing a Price for details.

Currently, Chrome Web Store Payments supports payments only in US dollars and only to developers who have a US bank account. Soon, however, developers in other countries will be able to sell apps.

Note: During this developer prerelease of international support, you can specify multiple countries where you intend to publish your app. However, you can't yet list apps in non-US countries, and non-US developers can't yet publish paid apps. For details, see Publishing to the world.

Back to top

Uploading and publishing your app

To publish apps to the Chrome Web Store, you first use the Chrome Developer Dashboard to upload your app and specify how its listing should look. Then you can publish it either to the world at large or to a few trusted testers. For details, see Publishing Your App.

Note: Before you publish your first app, you must pay a $5 developer signup fee. If you used the Chrome Developer Dashboard before the first developer preview release of the Chrome Web Store—to publish an extension, for example—you don't need to pay the fee.

Back to top

Protecting your app from unauthorized use

The Chrome browser provides a minimal default level of protection when a user tries to install an app. This protection relies on the fact that .crx files created by the Chrome Web Store are signed and contain an autoupdate URL created by the store.

Here's how the protection works: If the user downloads a .crx file that was created by the store, then the app installs only if the .crx file is being served by the Chrome Web Store.

Using the Licensing API to check for payment

The Chrome Web Store Licensing API lets you find out whether the current user has paid for your app using Chrome Web Store Payments. To use the Licensing API, you need two IDs and an OAuth access token:

App ID
The Chrome Developer Dashboard generates this ID the first time you upload the app. You can get it from the Chrome Developer Dashboard's page for your app.
User ID
Your app needs to get a Google Account identity for the user, using OpenID.
OAuth access token
After you upload your app, you can ask the Chrome Developer Dashboard to generate an OAuth access token and secret.

Once you have these items, you can make requests to the license server using OAuth and the Licensing API. The license server tells you whether the user has access to this app, and whether a free trial is in effect. Rather than query the server repeatedly, you should cache the response.

For detailed instructions on using the Licensing API, see Checking for Payment.

Encouraging payment

No protection is perfect, but here are some practices that should encourage people to pay for your app:

  • Update your app frequently, so that only authorized users will always have the latest, greatest version of the app. Distributing updates is easy, thanks to Chrome's support for autoupdate. You just increment the version number in the manifest, update the ZIP file, and then use the Chrome Developer Dashboard to upload and publish the updated ZIP file. Over the next few hours, the new version of the app starts going out to its existing users.
  • Don't put any roadblocks in front of users. Your app should be easy to buy, and it should work everywhere users want it to work.

Back to top

What next?

Here are some choices for where to go next:

Tutorial: Getting Started
Publish your first web app in the Chrome Web Store.
Checking for Payment
Learn how to use the Licensing API to check whether the user has paid for your app.
Tutorial: Licensing API
Write an app that uses the Licensing API.
Samples
Find samples in multiple languages of hosted apps that use the Licensing API.

If you just want to write your app, see the developer doc for the type of app you're interested in:

Back to top