OLD | NEW |
1 <meta name="doc-family" content="apps"> | 1 <meta name="doc-family" content="apps"> |
2 <h1>Google Cloud Messaging for Chrome</h1> | 2 <h1>Google Cloud Messaging for Chrome</h1> |
3 | 3 |
4 <p> | 4 <p> |
5 Google Cloud Messaging for Chrome (GCM) is a service | 5 Google Cloud Messaging for Chrome (GCM) is a service |
6 for signed-in Chrome users | 6 for signed-in Chrome users |
7 that helps developers send message data from servers | 7 that helps developers send message data from servers |
8 to their Chrome apps and extensions. | 8 to their Chrome apps and extensions. |
9 The service is intended to wake up an app or extension, | 9 The service is intended to wake up an app or extension, |
10 and/or alert a user. | 10 and/or alert a user. |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 from sending messages to your app or extension without your permission. | 478 from sending messages to your app or extension without your permission. |
479 If your app or extension attempts to use the pushMessaging API and | 479 If your app or extension attempts to use the pushMessaging API and |
480 the ownership check fails, it will receive | 480 the ownership check fails, it will receive |
481 HTTP status code 500 (Internal Server Error). | 481 HTTP status code 500 (Internal Server Error). |
482 </p> | 482 </p> |
483 | 483 |
484 <p> | 484 <p> |
485 One circumstance in which the ownership check commonly fails is when you are | 485 One circumstance in which the ownership check commonly fails is when you are |
486 developing an app and you run the app without uploading it and re-downloading | 486 developing an app and you run the app without uploading it and re-downloading |
487 it from the Chrome Web Store. In this situation your app may not have a | 487 it from the Chrome Web Store. In this situation your app may not have a |
488 <a href="manifest.html#key">key</a> field in its manifest.json file. | 488 <a href="manifest/key.html">key</a> field in its manifest.json file. |
489 The <code>key</code> field gives an app its Chrome Web Store ID | 489 The <code>key</code> field gives an app its Chrome Web Store ID |
490 (a 32 character alphabetic code, such as "bafimiidcfafikaonocgmmcpbbhfjjik"). | 490 (a 32 character alphabetic code, such as "bafimiidcfafikaonocgmmcpbbhfjjik"). |
491 If you run a version of your app without a key, the app will use a | 491 If you run a version of your app without a key, the app will use a |
492 randomly generated ID that will not match the app's ID in the Chrome Web Store. | 492 randomly generated ID that will not match the app's ID in the Chrome Web Store. |
493 For example, if you upload your app to the Chrome Web Store from the directory | 493 For example, if you upload your app to the Chrome Web Store from the directory |
494 original_app_dir, then download the app and unpack it to downloaded_app_dir, | 494 original_app_dir, then download the app and unpack it to downloaded_app_dir, |
495 and then run the exact same app as an unpacked extension from original_app_dir, | 495 and then run the exact same app as an unpacked extension from original_app_dir, |
496 the manifest.json file of the app in original_app_dir would not have | 496 the manifest.json file of the app in original_app_dir would not have |
497 the downloaded key, and the app's ID would appear to be different than | 497 the downloaded key, and the app's ID would appear to be different than |
498 the ID of the downloaded app. | 498 the ID of the downloaded app. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 Extensions management page (chrome://extensions).</li> | 536 Extensions management page (chrome://extensions).</li> |
537 </ol> | 537 </ol> |
538 | 538 |
539 <p> | 539 <p> |
540 Each time you reload your app or extension for testing, | 540 Each time you reload your app or extension for testing, |
541 you need to check that the key is present in the manifest file. | 541 you need to check that the key is present in the manifest file. |
542 And anytime you wish to update the published version in the Chrome Web Store, | 542 And anytime you wish to update the published version in the Chrome Web Store, |
543 you need to remove the key because the Store does not currently allow manifests | 543 you need to remove the key because the Store does not currently allow manifests |
544 with keys. | 544 with keys. |
545 </p> | 545 </p> |
OLD | NEW |