1 <!DOCTYPE html> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 <html> 77 <head> 78 79 80 81 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 82 83 <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> 84 <title>Constants | Android Developers</title> 85 86 <!-- STYLESHEETS --> 87 <link rel="stylesheet" 88 href="//fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold" title="roboto"> 89 <link href="/assets/css/default.css" rel="stylesheet" type="text/css"> 90 91 92 93 <!-- JAVASCRIPT --> 94 <script src="//www.google.com/jsapi" type="text/javascript"></script> 95 <script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script> 96 <script type="text/javascript"> 97 var toRoot = "/"; 98 var devsite = false; 99 </script> 100 <script src="/assets/js/docs.js" type="text/javascript"></script> 101 102 <script type="text/javascript"> 103 var _gaq = _gaq || []; 104 _gaq.push(['_setAccount', 'UA-5831155-1']); 105 _gaq.push(['_trackPageview']); 106 107 (function() { 108 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 109 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 110 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 111 })(); 112 </script> 113 </head> 114 <body class="gc-documentation google 115 develop" itemscope itemtype="http://schema.org/Article"> 116 <div id="doc-api-level" class="" style="display:none"></div> 117 <a name="top"></a> 118 119 <a name="top"></a> 120 121 <!-- Header --> 122 <div id="header"> 123 <div class="wrap" id="header-wrap"> 124 <div class="col-3 logo"> 125 <a href="/index.html"> 126 <img src="/assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" /> 127 </a> 128 <div class="btn-quicknav" id="btn-quicknav"> 129 <a href="#" class="arrow-inactive">Quicknav</a> 130 <a href="#" class="arrow-active">Quicknav</a> 131 </div> 132 </div> 133 <ul class="nav-x col-9"> 134 <li class="design"> 135 <a href="/design/index.html" 136 zh-tw-lang="" 137 zh-cn-lang="" 138 ru-lang="" 139 ko-lang="" 140 ja-lang="" 141 es-lang="Disear" 142 >Design</a></li> 143 <li class="develop"><a href="/develop/index.html" 144 zh-tw-lang="" 145 zh-cn-lang="" 146 ru-lang="" 147 ko-lang="" 148 ja-lang="" 149 es-lang="Desarrollar" 150 >Develop</a></li> 151 <li class="distribute last"><a href="/distribute/index.html" 152 zh-tw-lang="" 153 zh-cn-lang="" 154 ru-lang="" 155 ko-lang="" 156 ja-lang="" 157 es-lang="Distribuir" 158 >Distribute</a></li> 159 </ul> 160 161 <!-- New Search --> 162 <div class="menu-container"> 163 <div class="moremenu"> 164 <div id="more-btn"></div> 165 </div> 166 <div class="morehover" id="moremenu"> 167 <div class="top"></div> 168 <div class="mid"> 169 <div class="header">Links</div> 170 <ul> 171 <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li> 172 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 173 <li><a href="/about/index.html">About Android</a></li> 174 </ul> 175 <div class="header">Android Sites</div> 176 <ul> 177 <li><a href="http://www.android.com">Android.com</a></li> 178 <li class="active"><a>Android Developers</a></li> 179 <li><a href="http://source.android.com">Android Open Source Project</a></li> 180 </ul> 181 182 183 184 <div class="header">Language</div> 185 <div id="language" class="locales"> 186 <select name="language" onChange="changeLangPref(this.value, true)"> 187 <option value="en">English</option> 188 <option value="es">Espaol</option> 189 <option value="ja"></option> 190 <option value="ko"></option> 191 <option value="ru"></option> 192 <option value="zh-cn"> ()</option> 193 <option value="zh-tw"> ()</option> 194 </select> 195 </div> 196 <script type="text/javascript"> 197 <!-- 198 loadLangPref(); 199 //--> 200 </script> 201 202 203 204 205 <br class="clearfix" /> 206 </div> 207 <div class="bottom"></div> 208 </div> 209 <div class="search" id="search-container"> 210 <div class="search-inner"> 211 <div id="search-btn"></div> 212 <div class="left"></div> 213 <form onsubmit="return submit_search()"> 214 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 215 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 216 onkeydown="return search_changed(event, true, '/')" 217 onkeyup="return search_changed(event, false, '/')" /> 218 </form> 219 <div class="right"></div> 220 <a class="close hide">close</a> 221 <div class="left"></div> 222 <div class="right"></div> 223 </div> 224 </div> 225 226 <div class="search_filtered_wrapper reference"> 227 <div class="suggest-card reference no-display"> 228 <ul class="search_filtered"> 229 </ul> 230 </div> 231 </div> 232 233 <div class="search_filtered_wrapper docs"> 234 <div class="suggest-card dummy no-display"> </div> 235 <div class="suggest-card develop no-display"> 236 <ul class="search_filtered"> 237 </ul> 238 <div class="child-card guides no-display"> 239 </div> 240 <div class="child-card training no-display"> 241 </div> 242 </div> 243 <div class="suggest-card design no-display"> 244 <ul class="search_filtered"> 245 </ul> 246 </div> 247 <div class="suggest-card distribute no-display"> 248 <ul class="search_filtered"> 249 </ul> 250 </div> 251 </div> 252 253 </div> 254 <!-- /New Search> 255 256 257 <!-- Expanded quicknav --> 258 <div id="quicknav" class="col-9"> 259 <ul> 260 <li class="design"> 261 <ul> 262 <li><a href="/design/index.html">Get Started</a></li> 263 <li><a href="/design/style/index.html">Style</a></li> 264 <li><a href="/design/patterns/index.html">Patterns</a></li> 265 <li><a href="/design/building-blocks/index.html">Building Blocks</a></li> 266 <li><a href="/design/downloads/index.html">Downloads</a></li> 267 <li><a href="/design/videos/index.html">Videos</a></li> 268 </ul> 269 </li> 270 <li class="develop"> 271 <ul> 272 <li><a href="/training/index.html" 273 zh-tw-lang="" 274 zh-cn-lang="" 275 ru-lang="" 276 ko-lang="" 277 ja-lang="" 278 es-lang="Capacitacin" 279 >Training</a></li> 280 <li><a href="/guide/components/index.html" 281 zh-tw-lang="API " 282 zh-cn-lang="API " 283 ru-lang=" API" 284 ko-lang="API " 285 ja-lang="API " 286 es-lang="Guas de la API" 287 >API Guides</a></li> 288 <li><a href="/reference/packages.html" 289 zh-tw-lang="" 290 zh-cn-lang="" 291 ru-lang="" 292 ko-lang="" 293 ja-lang="" 294 es-lang="Referencia" 295 >Reference</a></li> 296 <li><a href="/tools/index.html" 297 zh-tw-lang="" 298 zh-cn-lang="" 299 ru-lang="" 300 ko-lang="" 301 ja-lang="" 302 es-lang="Herramientas" 303 >Tools</a> 304 <ul><li><a href="/sdk/index.html">Get the SDK</a></li></ul> 305 </li> 306 <li><a href="/google/index.html">Google Services</a> 307 </li> 308 </ul> 309 </li> 310 <li class="distribute last"> 311 <ul> 312 <li><a href="/distribute/index.html">Google Play</a></li> 313 <li><a href="/distribute/googleplay/publish/index.html">Publishing</a></li> 314 <li><a href="/distribute/googleplay/promote/index.html">Promoting</a></li> 315 <li><a href="/distribute/googleplay/quality/index.html">App Quality</a></li> 316 <li><a href="/distribute/googleplay/spotlight/index.html">Spotlight</a></li> 317 <li><a href="/distribute/open.html">Open Distribution</a></li> 318 </ul> 319 </li> 320 </ul> 321 </div> 322 <!-- /Expanded quicknav --> 323 </div> 324 </div> 325 <!-- /Header --> 326 327 328 <div id="searchResults" class="wrap" style="display:none;"> 329 <h2 id="searchTitle">Results</h2> 330 <div id="leftSearchControl" class="search-control">Loading...</div> 331 </div> 332 333 334 335 <!-- Secondary x-nav --> 336 <div id="nav-x"> 337 <div class="wrap"> 338 <ul class="nav-x col-9 develop" style="width:100%"> 339 <li class="training"><a href="/training/index.html" 340 zh-tw-lang="" 341 zh-cn-lang="" 342 ru-lang="" 343 ko-lang="" 344 ja-lang="" 345 es-lang="Capacitacin" 346 >Training</a></li> 347 <li class="guide"><a href="/guide/components/index.html" 348 zh-tw-lang="API " 349 zh-cn-lang="API " 350 ru-lang=" API" 351 ko-lang="API " 352 ja-lang="API " 353 es-lang="Guas de la API" 354 >API Guides</a></li> 355 <li class="reference"><a href="/reference/packages.html" 356 zh-tw-lang="" 357 zh-cn-lang="" 358 ru-lang="" 359 ko-lang="" 360 ja-lang="" 361 es-lang="Referencia" 362 >Reference</a></li> 363 <li class="tools"><a href="/tools/index.html" 364 zh-tw-lang="" 365 zh-cn-lang="" 366 ru-lang="" 367 ko-lang="" 368 ja-lang="" 369 es-lang="Herramientas" 370 >Tools</a></li> 371 <li class="google"><a href="/google/index.html" 372 >Google Services</a> 373 </li> 374 </ul> 375 </div> 376 377 </div> 378 <!-- /Sendondary x-nav --> 379 380 381 382 383 384 385 386 387 388 <div class="wrap clearfix" id="body-content"> 389 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 390 <div id="devdoc-nav" class="scroll-pane"> 391 <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> 392 393 394 395 <ul id="nav"> 396 397 <li class="nav-section"> 398 <div class="nav-section-header empty"><a href="/google/index.html"> 399 <span class="en">Overview</span> 400 </a></div> 401 </li> 402 403 <li class="nav-section"> 404 <div class="nav-section-header empty"><a href="/google/play-services/games.html"> 405 <span class="en">Games</span> 406 </a></div> 407 </li> 408 <li class="nav-section"> 409 <div class="nav-section-header empty"><a href="/google/play-services/location.html"> 410 <span class="en">Location</span> 411 </a></div> 412 </li> 413 <li class="nav-section"> 414 <div class="nav-section-header empty"><a href="/google/play-services/plus.html"> 415 <span class="en">Google+</span> 416 </a></div> 417 </li> 418 <li class="nav-section"> 419 <div class="nav-section-header empty"><a href="/google/play-services/maps.html"> 420 <span class="en">Google Maps</span> 421 </a></div> 422 </li> 423 <li class="nav-section"> 424 <div class="nav-section-header empty"><a href="/google/play-services/auth.html"> 425 <span class="en">Authorization</span> 426 </a></div> 427 </li> 428 429 430 431 <li class="nav-section"> 432 <div class="nav-section-header"><a href="/google/play-services/index.html"> 433 <span class="en">Google Play Services</span></a> 434 </div> 435 <ul> 436 <li><a href="/google/play-services/setup.html"> 437 <span class="en">Setup</span></a> 438 </li> 439 <li id="gms-tree-list" class="nav-section"> 440 <div class="nav-section-header"> 441 <a href="/reference/gms-packages.html"> 442 <span class="en">Reference</span> 443 </a> 444 <div> 445 </li> 446 </ul> 447 </li> 448 449 450 <li class="nav-section"> 451 <div class="nav-section-header"><a href="/google/play/billing/index.html"> 452 <span class="en">Google Play In-app Billing</span></a> 453 </div> 454 <ul> 455 <li><a href="/google/play/billing/billing_overview.html"> 456 <span class="en">Overview</span></a> 457 </li> 458 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html"> 459 <span class="en">Version 3 API</span></a></div> 460 <ul> 461 <li><a href="/google/play/billing/billing_integrate.html"> 462 <span class="en">Implementing the API</span></a></li> 463 <li><a href="/google/play/billing/billing_reference.html"> 464 <span class="en">Reference</span></a></li> 465 </ul> 466 </li> 467 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html"> 468 <span class="en">Version 2 API</span></a></div> 469 <ul> 470 <li><a href="/google/play/billing/v2/billing_integrate.html"> 471 <span class="en">Implementing the API</span></a></li> 472 <li><a href="/google/play/billing/v2/billing_subscriptions.html"> 473 <span class="en">Subscriptions</span></a></li> 474 <li><a href="/google/play/billing/v2/billing_reference.html"> 475 <span class="en">Reference</span></a></li> 476 </ul> 477 </li> 478 <li><a href="/google/play/billing/billing_subscriptions.html"> 479 <span class="en">Subscriptions</span></a> 480 </li> 481 <li><a href="/google/play/billing/billing_best_practices.html"> 482 <span class="en">Security and Design</span></a> 483 </li> 484 <li><a href="/google/play/billing/billing_testing.html"> 485 <span class="en">Testing In-app Billing</span></a> 486 </li> 487 <li><a href="/google/play/billing/billing_admin.html"> 488 <span class="en">Administering In-app Billing</span></a> 489 </li> 490 <li><a href="/google/play/billing/gp-purchase-status-api.html"> 491 <span class="en">Purchase Status API</span></a> 492 </li> 493 <li><a href="/google/play/billing/versions.html"> 494 <span class="en">Version Notes</span></a> 495 </li> 496 </ul> 497 </li> 498 499 500 501 <li class="nav-section"> 502 <div class="nav-section-header"><a href="/google/gcm/index.html"> 503 <span class="en">Google Cloud Messaging</span></a> 504 </div> 505 <ul> 506 <li><a href="/google/gcm/gs.html"> 507 <span class="en">Getting Started</span></a> 508 </li> 509 <li><a href="/google/gcm/gcm.html"> 510 <span class="en">Architectural Overview</span></a> 511 </li> 512 <li><a href="/google/gcm/ccs.html"> 513 <span class="en">Cloud Connection Server</span></a> 514 </li> 515 <li><a href="/google/gcm/notifications.html"> 516 <span class="en">User Notifications</span></a> 517 </li> 518 <li><a href="/google/gcm/client.html"> 519 <span class="en">GCM Client</span></a> 520 </li> 521 <li><a href="/google/gcm/server.html"> 522 <span class="en">GCM Server</span></a> 523 </li> 524 <li><a href="/google/gcm/adv.html"> 525 <span class="en">Advanced Topics</span></a> 526 </li> 527 <li><a href="/google/gcm/c2dm.html"> 528 <span class="en">Migration</span></a> 529 </li> 530 <li id="gcm-tree-list" class="nav-section"> 531 <div class="nav-section-header"> 532 <a href="/reference/gcm-packages.html"> 533 <span class="en">Reference</span> 534 </a> 535 <div> 536 </li> 537 </ul> 538 </li> 539 540 <li class="nav-section"> 541 <div class="nav-section-header"><a href="/google/play/dist.html"> 542 <span class="en">Google Play Distribution</span></a> 543 </div> 544 <ul> 545 <li><a href="/google/play/filters.html"> 546 <span class="en">Filters on Google Play</span></a> 547 </li> 548 549 <li><a href="/google/play/publishing/multiple-apks.html"> 550 <span class="en">Multiple APK Support</span></a> 551 </li> 552 <li><a href="/google/play/expansion-files.html"> 553 <span class="en">APK Expansion Files</span></a> 554 </li> 555 <li class="nav-section"> 556 <div class="nav-section-header"><a href="/google/play/licensing/index.html"> 557 <span class="en">Application Licensing</span></a> 558 </div> 559 <ul> 560 <li><a href="/google/play/licensing/overview.html"> 561 <span class="en">Licensing Overview</span></a> 562 </li> 563 <li><a href="/google/play/licensing/setting-up.html"> 564 <span class="en">Setting Up for Licensing</span></a> 565 </li> 566 <li><a href="/google/play/licensing/adding-licensing.html"> 567 <span class="en">Adding Licensing to Your App</span></a> 568 </li> 569 <li><a href="/google/play/licensing/licensing-reference.html"> 570 <span class="en">Licensing Reference</span></a> 571 </li> 572 </ul> 573 </li> 574 575 <li class="nav-section"> 576 <div class="nav-section-header"><a href="/google/backup/index.html"> 577 Android Backup Service</a> 578 </div> 579 <ul> 580 <li><a href="/google/backup/signup.html"> 581 Register</a> 582 </li> 583 </ul> 584 </li> 585 586 </ul> 587 588 </li> 589 590 591 592 </ul> 593 594 <script type="text/javascript"> 595 <!-- 596 buildToggleLists(); 597 changeNavLang(getLangPref()); 598 //--> 599 </script> 600 601 602 603 604 </div> 605 <script type="text/javascript"> 606 showGoogleRefTree(); 607 608 </script> 609 </div> <!-- end side-nav --> 610 <script> 611 $(document).ready(function() { 612 scrollIntoView("devdoc-nav"); 613 }); 614 </script> 615 616 617 618 619 620 621 <div class="col-12" id="doc-col"> 622 623 <div id="api-info-block"> 624 625 626 627 628 629 630 631 632 633 634 635 <div class="sum-details-links"> 636 637 Summary: 638 639 640 641 642 643 <a href="#constants">Constants</a> 644 645 646 647 648 649 650 651 652 653 654 | <a href="#inhmethods">Inherited Methods</a> 655 656 | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 657 658 </div><!-- end sum-details-links --> 659 <div class="api-level"> 660 661 662 663 664 </div> 665 </div><!-- end api-info-block --> 666 667 668 <!-- ======== START OF CLASS DATA ======== --> 669 670 <div id="jd-header"> 671 public 672 673 final 674 675 class 676 <h1 itemprop="name">Constants</h1> 677 678 679 680 681 extends Object<br/> 682 683 684 685 686 687 688 689 690 691 </div><!-- end header --> 692 693 <div id="naMessage"></div> 694 695 <div id="jd-content" class="api apilevel-"> 696 <table class="jd-inheritance-table"> 697 698 699 <tr> 700 701 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td> 702 </tr> 703 704 705 <tr> 706 707 <td class="jd-inheritance-space"> ↳</td> 708 709 <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gcm.server.Constants</td> 710 </tr> 711 712 713 </table> 714 715 716 717 718 719 720 721 <div class="jd-descr"> 722 723 724 <h2>Class Overview</h2> 725 <p itemprop="articleBody">Constants used on GCM service communication. 726 </p> 727 728 729 730 731 732 </div><!-- jd-descr --> 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 <div class="jd-descr"> 750 751 752 <h2>Summary</h2> 753 754 755 756 757 758 759 760 761 762 763 764 765 766 <!-- =========== ENUM CONSTANT SUMMARY =========== --> 767 <table id="constants" class="jd-sumtable"><tr><th colspan="12">Constants</th></tr> 768 769 770 771 <tr class="alt-color api apilevel-" > 772 <td class="jd-typecol">String</td> 773 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_DEVICE_QUOTA_EXCEEDED">ERROR_DEVICE_QUOTA_EXCEEDED</a></td> 774 <td class="jd-descrcol" width="100%">Too many messages sent by the sender to a specific device.</td> 775 </tr> 776 777 778 <tr class=" api apilevel-" > 779 <td class="jd-typecol">String</td> 780 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_INTERNAL_SERVER_ERROR">ERROR_INTERNAL_SERVER_ERROR</a></td> 781 <td class="jd-descrcol" width="100%">A particular message could not be sent because the GCM servers encountered 782 an error.</td> 783 </tr> 784 785 786 <tr class="alt-color api apilevel-" > 787 <td class="jd-typecol">String</td> 788 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_INVALID_REGISTRATION">ERROR_INVALID_REGISTRATION</a></td> 789 <td class="jd-descrcol" width="100%">Bad registration_id.</td> 790 </tr> 791 792 793 <tr class=" api apilevel-" > 794 <td class="jd-typecol">String</td> 795 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_INVALID_TTL">ERROR_INVALID_TTL</a></td> 796 <td class="jd-descrcol" width="100%">Time to Live value passed is less than zero or more than maximum.</td> 797 </tr> 798 799 800 <tr class="alt-color api apilevel-" > 801 <td class="jd-typecol">String</td> 802 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_MESSAGE_TOO_BIG">ERROR_MESSAGE_TOO_BIG</a></td> 803 <td class="jd-descrcol" width="100%">The payload of the message is too big, see the limitations.</td> 804 </tr> 805 806 807 <tr class=" api apilevel-" > 808 <td class="jd-typecol">String</td> 809 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_MISMATCH_SENDER_ID">ERROR_MISMATCH_SENDER_ID</a></td> 810 <td class="jd-descrcol" width="100%">The sender_id contained in the registration_id does not match the 811 sender_id used to register with the GCM servers.</td> 812 </tr> 813 814 815 <tr class="alt-color api apilevel-" > 816 <td class="jd-typecol">String</td> 817 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_MISSING_COLLAPSE_KEY">ERROR_MISSING_COLLAPSE_KEY</a></td> 818 <td class="jd-descrcol" width="100%">Collapse key is required.</td> 819 </tr> 820 821 822 <tr class=" api apilevel-" > 823 <td class="jd-typecol">String</td> 824 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_MISSING_REGISTRATION">ERROR_MISSING_REGISTRATION</a></td> 825 <td class="jd-descrcol" width="100%">Missing registration_id.</td> 826 </tr> 827 828 829 <tr class="alt-color api apilevel-" > 830 <td class="jd-typecol">String</td> 831 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_NOT_REGISTERED">ERROR_NOT_REGISTERED</a></td> 832 <td class="jd-descrcol" width="100%">The user has uninstalled the application or turned off notifications.</td> 833 </tr> 834 835 836 <tr class=" api apilevel-" > 837 <td class="jd-typecol">String</td> 838 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_QUOTA_EXCEEDED">ERROR_QUOTA_EXCEEDED</a></td> 839 <td class="jd-descrcol" width="100%">Too many messages sent by the sender.</td> 840 </tr> 841 842 843 <tr class="alt-color api apilevel-" > 844 <td class="jd-typecol">String</td> 845 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#ERROR_UNAVAILABLE">ERROR_UNAVAILABLE</a></td> 846 <td class="jd-descrcol" width="100%">A particular message could not be sent because the GCM servers were not 847 available.</td> 848 </tr> 849 850 851 <tr class=" api apilevel-" > 852 <td class="jd-typecol">String</td> 853 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#GCM_SEND_ENDPOINT">GCM_SEND_ENDPOINT</a></td> 854 <td class="jd-descrcol" width="100%">Endpoint for sending messages.</td> 855 </tr> 856 857 858 <tr class="alt-color api apilevel-" > 859 <td class="jd-typecol">String</td> 860 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_CANONICAL_IDS">JSON_CANONICAL_IDS</a></td> 861 <td class="jd-descrcol" width="100%">JSON-only field representing the number of messages with a canonical 862 registration id.</td> 863 </tr> 864 865 866 <tr class=" api apilevel-" > 867 <td class="jd-typecol">String</td> 868 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_ERROR">JSON_ERROR</a></td> 869 <td class="jd-descrcol" width="100%">JSON-only field representing the error field of an individual request.</td> 870 </tr> 871 872 873 <tr class="alt-color api apilevel-" > 874 <td class="jd-typecol">String</td> 875 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_FAILURE">JSON_FAILURE</a></td> 876 <td class="jd-descrcol" width="100%">JSON-only field representing the number of failed messages.</td> 877 </tr> 878 879 880 <tr class=" api apilevel-" > 881 <td class="jd-typecol">String</td> 882 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_MESSAGE_ID">JSON_MESSAGE_ID</a></td> 883 <td class="jd-descrcol" width="100%">JSON-only field sent by GCM when a message was successfully sent.</td> 884 </tr> 885 886 887 <tr class="alt-color api apilevel-" > 888 <td class="jd-typecol">String</td> 889 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_MULTICAST_ID">JSON_MULTICAST_ID</a></td> 890 <td class="jd-descrcol" width="100%">JSON-only field representing the id of the multicast request.</td> 891 </tr> 892 893 894 <tr class=" api apilevel-" > 895 <td class="jd-typecol">String</td> 896 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_PAYLOAD">JSON_PAYLOAD</a></td> 897 <td class="jd-descrcol" width="100%">JSON-only field representing the payload data.</td> 898 </tr> 899 900 901 <tr class="alt-color api apilevel-" > 902 <td class="jd-typecol">String</td> 903 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_REGISTRATION_IDS">JSON_REGISTRATION_IDS</a></td> 904 <td class="jd-descrcol" width="100%">JSON-only field representing the registration ids.</td> 905 </tr> 906 907 908 <tr class=" api apilevel-" > 909 <td class="jd-typecol">String</td> 910 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_RESULTS">JSON_RESULTS</a></td> 911 <td class="jd-descrcol" width="100%">JSON-only field representing the result of each individual request.</td> 912 </tr> 913 914 915 <tr class="alt-color api apilevel-" > 916 <td class="jd-typecol">String</td> 917 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#JSON_SUCCESS">JSON_SUCCESS</a></td> 918 <td class="jd-descrcol" width="100%">JSON-only field representing the number of successful messages.</td> 919 </tr> 920 921 922 <tr class=" api apilevel-" > 923 <td class="jd-typecol">String</td> 924 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#PARAM_COLLAPSE_KEY">PARAM_COLLAPSE_KEY</a></td> 925 <td class="jd-descrcol" width="100%">HTTP parameter for collapse key.</td> 926 </tr> 927 928 929 <tr class="alt-color api apilevel-" > 930 <td class="jd-typecol">String</td> 931 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#PARAM_DELAY_WHILE_IDLE">PARAM_DELAY_WHILE_IDLE</a></td> 932 <td class="jd-descrcol" width="100%">HTTP parameter for delaying the message delivery if the device is idle.</td> 933 </tr> 934 935 936 <tr class=" api apilevel-" > 937 <td class="jd-typecol">String</td> 938 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#PARAM_DRY_RUN">PARAM_DRY_RUN</a></td> 939 <td class="jd-descrcol" width="100%">HTTP parameter for telling gcm to validate the message without actually sending it.</td> 940 </tr> 941 942 943 <tr class="alt-color api apilevel-" > 944 <td class="jd-typecol">String</td> 945 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#PARAM_PAYLOAD_PREFIX">PARAM_PAYLOAD_PREFIX</a></td> 946 <td class="jd-descrcol" width="100%">Prefix to HTTP parameter used to pass key-values in the message payload.</td> 947 </tr> 948 949 950 <tr class=" api apilevel-" > 951 <td class="jd-typecol">String</td> 952 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#PARAM_REGISTRATION_ID">PARAM_REGISTRATION_ID</a></td> 953 <td class="jd-descrcol" width="100%">HTTP parameter for registration id.</td> 954 </tr> 955 956 957 <tr class="alt-color api apilevel-" > 958 <td class="jd-typecol">String</td> 959 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#PARAM_RESTRICTED_PACKAGE_NAME">PARAM_RESTRICTED_PACKAGE_NAME</a></td> 960 <td class="jd-descrcol" width="100%">HTTP parameter for package name that can be used to restrict message delivery by matching 961 against the package name used to generate the registration id.</td> 962 </tr> 963 964 965 <tr class=" api apilevel-" > 966 <td class="jd-typecol">String</td> 967 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#PARAM_TIME_TO_LIVE">PARAM_TIME_TO_LIVE</a></td> 968 <td class="jd-descrcol" width="100%">Prefix to HTTP parameter used to set the message time-to-live.</td> 969 </tr> 970 971 972 <tr class="alt-color api apilevel-" > 973 <td class="jd-typecol">String</td> 974 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#TOKEN_CANONICAL_REG_ID">TOKEN_CANONICAL_REG_ID</a></td> 975 <td class="jd-descrcol" width="100%">Token returned by GCM when the requested registration id has a canonical 976 value.</td> 977 </tr> 978 979 980 <tr class=" api apilevel-" > 981 <td class="jd-typecol">String</td> 982 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#TOKEN_ERROR">TOKEN_ERROR</a></td> 983 <td class="jd-descrcol" width="100%">Token returned by GCM when there was an error sending a message.</td> 984 </tr> 985 986 987 <tr class="alt-color api apilevel-" > 988 <td class="jd-typecol">String</td> 989 <td class="jd-linkcol"><a href="/reference/com/google/android/gcm/server/Constants.html#TOKEN_MESSAGE_ID">TOKEN_MESSAGE_ID</a></td> 990 <td class="jd-descrcol" width="100%">Token returned by GCM when a message was successfully sent.</td> 991 </tr> 992 993 994 995 </table> 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 <!-- ========== METHOD SUMMARY =========== --> 1018 <table id="inhmethods" class="jd-sumtable"><tr><th> 1019 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> 1020 <div style="clear:left;">Inherited Methods</div></th></tr> 1021 1022 1023 <tr class="api apilevel-" > 1024 <td colspan="12"> 1025 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 1026 ><img id="inherited-methods-java.lang.Object-trigger" 1027 src="/assets/images/triangle-closed.png" 1028 class="jd-expando-trigger-img" /></a> 1029 From class 1030 1031 java.lang.Object 1032 1033 <div id="inherited-methods-java.lang.Object"> 1034 <div id="inherited-methods-java.lang.Object-list" 1035 class="jd-inheritedlinks"> 1036 </div> 1037 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 1038 <table class="jd-sumtable-expando"> 1039 1040 1041 1042 1043 <tr class="alt-color api apilevel-" > 1044 <td class="jd-typecol"><nobr> 1045 1046 1047 1048 1049 1050 Object</nobr> 1051 </td> 1052 <td class="jd-linkcol" width="100%"><nobr> 1053 <span class="sympad">clone</span>()</nobr> 1054 1055 </td></tr> 1056 1057 1058 1059 <tr class=" api apilevel-" > 1060 <td class="jd-typecol"><nobr> 1061 1062 1063 1064 1065 1066 boolean</nobr> 1067 </td> 1068 <td class="jd-linkcol" width="100%"><nobr> 1069 <span class="sympad">equals</span>(Object arg0)</nobr> 1070 1071 </td></tr> 1072 1073 1074 1075 <tr class="alt-color api apilevel-" > 1076 <td class="jd-typecol"><nobr> 1077 1078 1079 1080 1081 1082 void</nobr> 1083 </td> 1084 <td class="jd-linkcol" width="100%"><nobr> 1085 <span class="sympad">finalize</span>()</nobr> 1086 1087 </td></tr> 1088 1089 1090 1091 <tr class=" api apilevel-" > 1092 <td class="jd-typecol"><nobr> 1093 1094 1095 final 1096 1097 1098 Class<?></nobr> 1099 </td> 1100 <td class="jd-linkcol" width="100%"><nobr> 1101 <span class="sympad">getClass</span>()</nobr> 1102 1103 </td></tr> 1104 1105 1106 1107 <tr class="alt-color api apilevel-" > 1108 <td class="jd-typecol"><nobr> 1109 1110 1111 1112 1113 1114 int</nobr> 1115 </td> 1116 <td class="jd-linkcol" width="100%"><nobr> 1117 <span class="sympad">hashCode</span>()</nobr> 1118 1119 </td></tr> 1120 1121 1122 1123 <tr class=" api apilevel-" > 1124 <td class="jd-typecol"><nobr> 1125 1126 1127 final 1128 1129 1130 void</nobr> 1131 </td> 1132 <td class="jd-linkcol" width="100%"><nobr> 1133 <span class="sympad">notify</span>()</nobr> 1134 1135 </td></tr> 1136 1137 1138 1139 <tr class="alt-color api apilevel-" > 1140 <td class="jd-typecol"><nobr> 1141 1142 1143 final 1144 1145 1146 void</nobr> 1147 </td> 1148 <td class="jd-linkcol" width="100%"><nobr> 1149 <span class="sympad">notifyAll</span>()</nobr> 1150 1151 </td></tr> 1152 1153 1154 1155 <tr class=" api apilevel-" > 1156 <td class="jd-typecol"><nobr> 1157 1158 1159 1160 1161 1162 String</nobr> 1163 </td> 1164 <td class="jd-linkcol" width="100%"><nobr> 1165 <span class="sympad">toString</span>()</nobr> 1166 1167 </td></tr> 1168 1169 1170 1171 <tr class="alt-color api apilevel-" > 1172 <td class="jd-typecol"><nobr> 1173 1174 1175 final 1176 1177 1178 void</nobr> 1179 </td> 1180 <td class="jd-linkcol" width="100%"><nobr> 1181 <span class="sympad">wait</span>()</nobr> 1182 1183 </td></tr> 1184 1185 1186 1187 <tr class=" api apilevel-" > 1188 <td class="jd-typecol"><nobr> 1189 1190 1191 final 1192 1193 1194 void</nobr> 1195 </td> 1196 <td class="jd-linkcol" width="100%"><nobr> 1197 <span class="sympad">wait</span>(long arg0, int arg1)</nobr> 1198 1199 </td></tr> 1200 1201 1202 1203 <tr class="alt-color api apilevel-" > 1204 <td class="jd-typecol"><nobr> 1205 1206 1207 final 1208 1209 1210 void</nobr> 1211 </td> 1212 <td class="jd-linkcol" width="100%"><nobr> 1213 <span class="sympad">wait</span>(long arg0)</nobr> 1214 1215 </td></tr> 1216 1217 1218 </table> 1219 </div> 1220 </div> 1221 </td></tr> 1222 1223 1224 </table> 1225 1226 1227 </div><!-- jd-descr (summary) --> 1228 1229 <!-- Details --> 1230 1231 1232 1233 1234 1235 1236 1237 1238 <!-- XML Attributes --> 1239 1240 1241 <!-- Enum Values --> 1242 1243 1244 <!-- Constants --> 1245 1246 1247 <!-- ========= ENUM CONSTANTS DETAIL ======== --> 1248 <h2>Constants</h2> 1249 1250 1251 1252 1253 <A NAME="ERROR_DEVICE_QUOTA_EXCEEDED"></A> 1254 1255 <div class="jd-details api apilevel-"> 1256 <h4 class="jd-details-title"> 1257 <span class="normal"> 1258 public 1259 static 1260 final 1261 String 1262 </span> 1263 ERROR_DEVICE_QUOTA_EXCEEDED 1264 </h4> 1265 <div class="api-level"> 1266 1267 1268 1269 1270 </div> 1271 <div class="jd-details-descr"> 1272 1273 <div class="jd-tagdata jd-tagdescr"><p>Too many messages sent by the sender to a specific device. 1274 Retry after a while. 1275 </p></div> 1276 1277 1278 <div class="jd-tagdata"> 1279 <span class="jd-tagtitle">Constant Value: </span> 1280 <span> 1281 1282 "DeviceQuotaExceeded" 1283 1284 </span> 1285 </div> 1286 1287 </div> 1288 </div> 1289 1290 1291 1292 <A NAME="ERROR_INTERNAL_SERVER_ERROR"></A> 1293 1294 <div class="jd-details api apilevel-"> 1295 <h4 class="jd-details-title"> 1296 <span class="normal"> 1297 public 1298 static 1299 final 1300 String 1301 </span> 1302 ERROR_INTERNAL_SERVER_ERROR 1303 </h4> 1304 <div class="api-level"> 1305 1306 1307 1308 1309 </div> 1310 <div class="jd-details-descr"> 1311 1312 <div class="jd-tagdata jd-tagdescr"><p>A particular message could not be sent because the GCM servers encountered 1313 an error. Used only on JSON requests, as in plain text requests internal 1314 errors are indicated by a 500 response. 1315 </p></div> 1316 1317 1318 <div class="jd-tagdata"> 1319 <span class="jd-tagtitle">Constant Value: </span> 1320 <span> 1321 1322 "InternalServerError" 1323 1324 </span> 1325 </div> 1326 1327 </div> 1328 </div> 1329 1330 1331 1332 <A NAME="ERROR_INVALID_REGISTRATION"></A> 1333 1334 <div class="jd-details api apilevel-"> 1335 <h4 class="jd-details-title"> 1336 <span class="normal"> 1337 public 1338 static 1339 final 1340 String 1341 </span> 1342 ERROR_INVALID_REGISTRATION 1343 </h4> 1344 <div class="api-level"> 1345 1346 1347 1348 1349 </div> 1350 <div class="jd-details-descr"> 1351 1352 <div class="jd-tagdata jd-tagdescr"><p>Bad registration_id. Sender should remove this registration_id. 1353 </p></div> 1354 1355 1356 <div class="jd-tagdata"> 1357 <span class="jd-tagtitle">Constant Value: </span> 1358 <span> 1359 1360 "InvalidRegistration" 1361 1362 </span> 1363 </div> 1364 1365 </div> 1366 </div> 1367 1368 1369 1370 <A NAME="ERROR_INVALID_TTL"></A> 1371 1372 <div class="jd-details api apilevel-"> 1373 <h4 class="jd-details-title"> 1374 <span class="normal"> 1375 public 1376 static 1377 final 1378 String 1379 </span> 1380 ERROR_INVALID_TTL 1381 </h4> 1382 <div class="api-level"> 1383 1384 1385 1386 1387 </div> 1388 <div class="jd-details-descr"> 1389 1390 <div class="jd-tagdata jd-tagdescr"><p>Time to Live value passed is less than zero or more than maximum. 1391 </p></div> 1392 1393 1394 <div class="jd-tagdata"> 1395 <span class="jd-tagtitle">Constant Value: </span> 1396 <span> 1397 1398 "InvalidTtl" 1399 1400 </span> 1401 </div> 1402 1403 </div> 1404 </div> 1405 1406 1407 1408 <A NAME="ERROR_MESSAGE_TOO_BIG"></A> 1409 1410 <div class="jd-details api apilevel-"> 1411 <h4 class="jd-details-title"> 1412 <span class="normal"> 1413 public 1414 static 1415 final 1416 String 1417 </span> 1418 ERROR_MESSAGE_TOO_BIG 1419 </h4> 1420 <div class="api-level"> 1421 1422 1423 1424 1425 </div> 1426 <div class="jd-details-descr"> 1427 1428 <div class="jd-tagdata jd-tagdescr"><p>The payload of the message is too big, see the limitations. 1429 Reduce the size of the message. 1430 </p></div> 1431 1432 1433 <div class="jd-tagdata"> 1434 <span class="jd-tagtitle">Constant Value: </span> 1435 <span> 1436 1437 "MessageTooBig" 1438 1439 </span> 1440 </div> 1441 1442 </div> 1443 </div> 1444 1445 1446 1447 <A NAME="ERROR_MISMATCH_SENDER_ID"></A> 1448 1449 <div class="jd-details api apilevel-"> 1450 <h4 class="jd-details-title"> 1451 <span class="normal"> 1452 public 1453 static 1454 final 1455 String 1456 </span> 1457 ERROR_MISMATCH_SENDER_ID 1458 </h4> 1459 <div class="api-level"> 1460 1461 1462 1463 1464 </div> 1465 <div class="jd-details-descr"> 1466 1467 <div class="jd-tagdata jd-tagdescr"><p>The sender_id contained in the registration_id does not match the 1468 sender_id used to register with the GCM servers. 1469 </p></div> 1470 1471 1472 <div class="jd-tagdata"> 1473 <span class="jd-tagtitle">Constant Value: </span> 1474 <span> 1475 1476 "MismatchSenderId" 1477 1478 </span> 1479 </div> 1480 1481 </div> 1482 </div> 1483 1484 1485 1486 <A NAME="ERROR_MISSING_COLLAPSE_KEY"></A> 1487 1488 <div class="jd-details api apilevel-"> 1489 <h4 class="jd-details-title"> 1490 <span class="normal"> 1491 public 1492 static 1493 final 1494 String 1495 </span> 1496 ERROR_MISSING_COLLAPSE_KEY 1497 </h4> 1498 <div class="api-level"> 1499 1500 1501 1502 1503 </div> 1504 <div class="jd-details-descr"> 1505 1506 <div class="jd-tagdata jd-tagdescr"><p>Collapse key is required. Include collapse key in the request. 1507 </p></div> 1508 1509 1510 <div class="jd-tagdata"> 1511 <span class="jd-tagtitle">Constant Value: </span> 1512 <span> 1513 1514 "MissingCollapseKey" 1515 1516 </span> 1517 </div> 1518 1519 </div> 1520 </div> 1521 1522 1523 1524 <A NAME="ERROR_MISSING_REGISTRATION"></A> 1525 1526 <div class="jd-details api apilevel-"> 1527 <h4 class="jd-details-title"> 1528 <span class="normal"> 1529 public 1530 static 1531 final 1532 String 1533 </span> 1534 ERROR_MISSING_REGISTRATION 1535 </h4> 1536 <div class="api-level"> 1537 1538 1539 1540 1541 </div> 1542 <div class="jd-details-descr"> 1543 1544 <div class="jd-tagdata jd-tagdescr"><p>Missing registration_id. 1545 Sender should always add the registration_id to the request. 1546 </p></div> 1547 1548 1549 <div class="jd-tagdata"> 1550 <span class="jd-tagtitle">Constant Value: </span> 1551 <span> 1552 1553 "MissingRegistration" 1554 1555 </span> 1556 </div> 1557 1558 </div> 1559 </div> 1560 1561 1562 1563 <A NAME="ERROR_NOT_REGISTERED"></A> 1564 1565 <div class="jd-details api apilevel-"> 1566 <h4 class="jd-details-title"> 1567 <span class="normal"> 1568 public 1569 static 1570 final 1571 String 1572 </span> 1573 ERROR_NOT_REGISTERED 1574 </h4> 1575 <div class="api-level"> 1576 1577 1578 1579 1580 </div> 1581 <div class="jd-details-descr"> 1582 1583 <div class="jd-tagdata jd-tagdescr"><p>The user has uninstalled the application or turned off notifications. 1584 Sender should stop sending messages to this device and delete the 1585 registration_id. The client needs to re-register with the GCM servers to 1586 receive notifications again. 1587 </p></div> 1588 1589 1590 <div class="jd-tagdata"> 1591 <span class="jd-tagtitle">Constant Value: </span> 1592 <span> 1593 1594 "NotRegistered" 1595 1596 </span> 1597 </div> 1598 1599 </div> 1600 </div> 1601 1602 1603 1604 <A NAME="ERROR_QUOTA_EXCEEDED"></A> 1605 1606 <div class="jd-details api apilevel-"> 1607 <h4 class="jd-details-title"> 1608 <span class="normal"> 1609 public 1610 static 1611 final 1612 String 1613 </span> 1614 ERROR_QUOTA_EXCEEDED 1615 </h4> 1616 <div class="api-level"> 1617 1618 1619 1620 1621 </div> 1622 <div class="jd-details-descr"> 1623 1624 <div class="jd-tagdata jd-tagdescr"><p>Too many messages sent by the sender. Retry after a while. 1625 </p></div> 1626 1627 1628 <div class="jd-tagdata"> 1629 <span class="jd-tagtitle">Constant Value: </span> 1630 <span> 1631 1632 "QuotaExceeded" 1633 1634 </span> 1635 </div> 1636 1637 </div> 1638 </div> 1639 1640 1641 1642 <A NAME="ERROR_UNAVAILABLE"></A> 1643 1644 <div class="jd-details api apilevel-"> 1645 <h4 class="jd-details-title"> 1646 <span class="normal"> 1647 public 1648 static 1649 final 1650 String 1651 </span> 1652 ERROR_UNAVAILABLE 1653 </h4> 1654 <div class="api-level"> 1655 1656 1657 1658 1659 </div> 1660 <div class="jd-details-descr"> 1661 1662 <div class="jd-tagdata jd-tagdescr"><p>A particular message could not be sent because the GCM servers were not 1663 available. Used only on JSON requests, as in plain text requests 1664 unavailability is indicated by a 503 response. 1665 </p></div> 1666 1667 1668 <div class="jd-tagdata"> 1669 <span class="jd-tagtitle">Constant Value: </span> 1670 <span> 1671 1672 "Unavailable" 1673 1674 </span> 1675 </div> 1676 1677 </div> 1678 </div> 1679 1680 1681 1682 <A NAME="GCM_SEND_ENDPOINT"></A> 1683 1684 <div class="jd-details api apilevel-"> 1685 <h4 class="jd-details-title"> 1686 <span class="normal"> 1687 public 1688 static 1689 final 1690 String 1691 </span> 1692 GCM_SEND_ENDPOINT 1693 </h4> 1694 <div class="api-level"> 1695 1696 1697 1698 1699 </div> 1700 <div class="jd-details-descr"> 1701 1702 <div class="jd-tagdata jd-tagdescr"><p>Endpoint for sending messages. 1703 </p></div> 1704 1705 1706 <div class="jd-tagdata"> 1707 <span class="jd-tagtitle">Constant Value: </span> 1708 <span> 1709 1710 "https://android.googleapis.com/gcm/send" 1711 1712 </span> 1713 </div> 1714 1715 </div> 1716 </div> 1717 1718 1719 1720 <A NAME="JSON_CANONICAL_IDS"></A> 1721 1722 <div class="jd-details api apilevel-"> 1723 <h4 class="jd-details-title"> 1724 <span class="normal"> 1725 public 1726 static 1727 final 1728 String 1729 </span> 1730 JSON_CANONICAL_IDS 1731 </h4> 1732 <div class="api-level"> 1733 1734 1735 1736 1737 </div> 1738 <div class="jd-details-descr"> 1739 1740 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field representing the number of messages with a canonical 1741 registration id. 1742 </p></div> 1743 1744 1745 <div class="jd-tagdata"> 1746 <span class="jd-tagtitle">Constant Value: </span> 1747 <span> 1748 1749 "canonical_ids" 1750 1751 </span> 1752 </div> 1753 1754 </div> 1755 </div> 1756 1757 1758 1759 <A NAME="JSON_ERROR"></A> 1760 1761 <div class="jd-details api apilevel-"> 1762 <h4 class="jd-details-title"> 1763 <span class="normal"> 1764 public 1765 static 1766 final 1767 String 1768 </span> 1769 JSON_ERROR 1770 </h4> 1771 <div class="api-level"> 1772 1773 1774 1775 1776 </div> 1777 <div class="jd-details-descr"> 1778 1779 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field representing the error field of an individual request. 1780 </p></div> 1781 1782 1783 <div class="jd-tagdata"> 1784 <span class="jd-tagtitle">Constant Value: </span> 1785 <span> 1786 1787 "error" 1788 1789 </span> 1790 </div> 1791 1792 </div> 1793 </div> 1794 1795 1796 1797 <A NAME="JSON_FAILURE"></A> 1798 1799 <div class="jd-details api apilevel-"> 1800 <h4 class="jd-details-title"> 1801 <span class="normal"> 1802 public 1803 static 1804 final 1805 String 1806 </span> 1807 JSON_FAILURE 1808 </h4> 1809 <div class="api-level"> 1810 1811 1812 1813 1814 </div> 1815 <div class="jd-details-descr"> 1816 1817 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field representing the number of failed messages. 1818 </p></div> 1819 1820 1821 <div class="jd-tagdata"> 1822 <span class="jd-tagtitle">Constant Value: </span> 1823 <span> 1824 1825 "failure" 1826 1827 </span> 1828 </div> 1829 1830 </div> 1831 </div> 1832 1833 1834 1835 <A NAME="JSON_MESSAGE_ID"></A> 1836 1837 <div class="jd-details api apilevel-"> 1838 <h4 class="jd-details-title"> 1839 <span class="normal"> 1840 public 1841 static 1842 final 1843 String 1844 </span> 1845 JSON_MESSAGE_ID 1846 </h4> 1847 <div class="api-level"> 1848 1849 1850 1851 1852 </div> 1853 <div class="jd-details-descr"> 1854 1855 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field sent by GCM when a message was successfully sent. 1856 </p></div> 1857 1858 1859 <div class="jd-tagdata"> 1860 <span class="jd-tagtitle">Constant Value: </span> 1861 <span> 1862 1863 "message_id" 1864 1865 </span> 1866 </div> 1867 1868 </div> 1869 </div> 1870 1871 1872 1873 <A NAME="JSON_MULTICAST_ID"></A> 1874 1875 <div class="jd-details api apilevel-"> 1876 <h4 class="jd-details-title"> 1877 <span class="normal"> 1878 public 1879 static 1880 final 1881 String 1882 </span> 1883 JSON_MULTICAST_ID 1884 </h4> 1885 <div class="api-level"> 1886 1887 1888 1889 1890 </div> 1891 <div class="jd-details-descr"> 1892 1893 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field representing the id of the multicast request. 1894 </p></div> 1895 1896 1897 <div class="jd-tagdata"> 1898 <span class="jd-tagtitle">Constant Value: </span> 1899 <span> 1900 1901 "multicast_id" 1902 1903 </span> 1904 </div> 1905 1906 </div> 1907 </div> 1908 1909 1910 1911 <A NAME="JSON_PAYLOAD"></A> 1912 1913 <div class="jd-details api apilevel-"> 1914 <h4 class="jd-details-title"> 1915 <span class="normal"> 1916 public 1917 static 1918 final 1919 String 1920 </span> 1921 JSON_PAYLOAD 1922 </h4> 1923 <div class="api-level"> 1924 1925 1926 1927 1928 </div> 1929 <div class="jd-details-descr"> 1930 1931 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field representing the payload data. 1932 </p></div> 1933 1934 1935 <div class="jd-tagdata"> 1936 <span class="jd-tagtitle">Constant Value: </span> 1937 <span> 1938 1939 "data" 1940 1941 </span> 1942 </div> 1943 1944 </div> 1945 </div> 1946 1947 1948 1949 <A NAME="JSON_REGISTRATION_IDS"></A> 1950 1951 <div class="jd-details api apilevel-"> 1952 <h4 class="jd-details-title"> 1953 <span class="normal"> 1954 public 1955 static 1956 final 1957 String 1958 </span> 1959 JSON_REGISTRATION_IDS 1960 </h4> 1961 <div class="api-level"> 1962 1963 1964 1965 1966 </div> 1967 <div class="jd-details-descr"> 1968 1969 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field representing the registration ids. 1970 </p></div> 1971 1972 1973 <div class="jd-tagdata"> 1974 <span class="jd-tagtitle">Constant Value: </span> 1975 <span> 1976 1977 "registration_ids" 1978 1979 </span> 1980 </div> 1981 1982 </div> 1983 </div> 1984 1985 1986 1987 <A NAME="JSON_RESULTS"></A> 1988 1989 <div class="jd-details api apilevel-"> 1990 <h4 class="jd-details-title"> 1991 <span class="normal"> 1992 public 1993 static 1994 final 1995 String 1996 </span> 1997 JSON_RESULTS 1998 </h4> 1999 <div class="api-level"> 2000 2001 2002 2003 2004 </div> 2005 <div class="jd-details-descr"> 2006 2007 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field representing the result of each individual request. 2008 </p></div> 2009 2010 2011 <div class="jd-tagdata"> 2012 <span class="jd-tagtitle">Constant Value: </span> 2013 <span> 2014 2015 "results" 2016 2017 </span> 2018 </div> 2019 2020 </div> 2021 </div> 2022 2023 2024 2025 <A NAME="JSON_SUCCESS"></A> 2026 2027 <div class="jd-details api apilevel-"> 2028 <h4 class="jd-details-title"> 2029 <span class="normal"> 2030 public 2031 static 2032 final 2033 String 2034 </span> 2035 JSON_SUCCESS 2036 </h4> 2037 <div class="api-level"> 2038 2039 2040 2041 2042 </div> 2043 <div class="jd-details-descr"> 2044 2045 <div class="jd-tagdata jd-tagdescr"><p>JSON-only field representing the number of successful messages. 2046 </p></div> 2047 2048 2049 <div class="jd-tagdata"> 2050 <span class="jd-tagtitle">Constant Value: </span> 2051 <span> 2052 2053 "success" 2054 2055 </span> 2056 </div> 2057 2058 </div> 2059 </div> 2060 2061 2062 2063 <A NAME="PARAM_COLLAPSE_KEY"></A> 2064 2065 <div class="jd-details api apilevel-"> 2066 <h4 class="jd-details-title"> 2067 <span class="normal"> 2068 public 2069 static 2070 final 2071 String 2072 </span> 2073 PARAM_COLLAPSE_KEY 2074 </h4> 2075 <div class="api-level"> 2076 2077 2078 2079 2080 </div> 2081 <div class="jd-details-descr"> 2082 2083 <div class="jd-tagdata jd-tagdescr"><p>HTTP parameter for collapse key. 2084 </p></div> 2085 2086 2087 <div class="jd-tagdata"> 2088 <span class="jd-tagtitle">Constant Value: </span> 2089 <span> 2090 2091 "collapse_key" 2092 2093 </span> 2094 </div> 2095 2096 </div> 2097 </div> 2098 2099 2100 2101 <A NAME="PARAM_DELAY_WHILE_IDLE"></A> 2102 2103 <div class="jd-details api apilevel-"> 2104 <h4 class="jd-details-title"> 2105 <span class="normal"> 2106 public 2107 static 2108 final 2109 String 2110 </span> 2111 PARAM_DELAY_WHILE_IDLE 2112 </h4> 2113 <div class="api-level"> 2114 2115 2116 2117 2118 </div> 2119 <div class="jd-details-descr"> 2120 2121 <div class="jd-tagdata jd-tagdescr"><p>HTTP parameter for delaying the message delivery if the device is idle. 2122 </p></div> 2123 2124 2125 <div class="jd-tagdata"> 2126 <span class="jd-tagtitle">Constant Value: </span> 2127 <span> 2128 2129 "delay_while_idle" 2130 2131 </span> 2132 </div> 2133 2134 </div> 2135 </div> 2136 2137 2138 2139 <A NAME="PARAM_DRY_RUN"></A> 2140 2141 <div class="jd-details api apilevel-"> 2142 <h4 class="jd-details-title"> 2143 <span class="normal"> 2144 public 2145 static 2146 final 2147 String 2148 </span> 2149 PARAM_DRY_RUN 2150 </h4> 2151 <div class="api-level"> 2152 2153 2154 2155 2156 </div> 2157 <div class="jd-details-descr"> 2158 2159 <div class="jd-tagdata jd-tagdescr"><p>HTTP parameter for telling gcm to validate the message without actually sending it. 2160 </p></div> 2161 2162 2163 <div class="jd-tagdata"> 2164 <span class="jd-tagtitle">Constant Value: </span> 2165 <span> 2166 2167 "dry_run" 2168 2169 </span> 2170 </div> 2171 2172 </div> 2173 </div> 2174 2175 2176 2177 <A NAME="PARAM_PAYLOAD_PREFIX"></A> 2178 2179 <div class="jd-details api apilevel-"> 2180 <h4 class="jd-details-title"> 2181 <span class="normal"> 2182 public 2183 static 2184 final 2185 String 2186 </span> 2187 PARAM_PAYLOAD_PREFIX 2188 </h4> 2189 <div class="api-level"> 2190 2191 2192 2193 2194 </div> 2195 <div class="jd-details-descr"> 2196 2197 <div class="jd-tagdata jd-tagdescr"><p>Prefix to HTTP parameter used to pass key-values in the message payload. 2198 </p></div> 2199 2200 2201 <div class="jd-tagdata"> 2202 <span class="jd-tagtitle">Constant Value: </span> 2203 <span> 2204 2205 "data." 2206 2207 </span> 2208 </div> 2209 2210 </div> 2211 </div> 2212 2213 2214 2215 <A NAME="PARAM_REGISTRATION_ID"></A> 2216 2217 <div class="jd-details api apilevel-"> 2218 <h4 class="jd-details-title"> 2219 <span class="normal"> 2220 public 2221 static 2222 final 2223 String 2224 </span> 2225 PARAM_REGISTRATION_ID 2226 </h4> 2227 <div class="api-level"> 2228 2229 2230 2231 2232 </div> 2233 <div class="jd-details-descr"> 2234 2235 <div class="jd-tagdata jd-tagdescr"><p>HTTP parameter for registration id. 2236 </p></div> 2237 2238 2239 <div class="jd-tagdata"> 2240 <span class="jd-tagtitle">Constant Value: </span> 2241 <span> 2242 2243 "registration_id" 2244 2245 </span> 2246 </div> 2247 2248 </div> 2249 </div> 2250 2251 2252 2253 <A NAME="PARAM_RESTRICTED_PACKAGE_NAME"></A> 2254 2255 <div class="jd-details api apilevel-"> 2256 <h4 class="jd-details-title"> 2257 <span class="normal"> 2258 public 2259 static 2260 final 2261 String 2262 </span> 2263 PARAM_RESTRICTED_PACKAGE_NAME 2264 </h4> 2265 <div class="api-level"> 2266 2267 2268 2269 2270 </div> 2271 <div class="jd-details-descr"> 2272 2273 <div class="jd-tagdata jd-tagdescr"><p>HTTP parameter for package name that can be used to restrict message delivery by matching 2274 against the package name used to generate the registration id. 2275 </p></div> 2276 2277 2278 <div class="jd-tagdata"> 2279 <span class="jd-tagtitle">Constant Value: </span> 2280 <span> 2281 2282 "restricted_package_name" 2283 2284 </span> 2285 </div> 2286 2287 </div> 2288 </div> 2289 2290 2291 2292 <A NAME="PARAM_TIME_TO_LIVE"></A> 2293 2294 <div class="jd-details api apilevel-"> 2295 <h4 class="jd-details-title"> 2296 <span class="normal"> 2297 public 2298 static 2299 final 2300 String 2301 </span> 2302 PARAM_TIME_TO_LIVE 2303 </h4> 2304 <div class="api-level"> 2305 2306 2307 2308 2309 </div> 2310 <div class="jd-details-descr"> 2311 2312 <div class="jd-tagdata jd-tagdescr"><p>Prefix to HTTP parameter used to set the message time-to-live. 2313 </p></div> 2314 2315 2316 <div class="jd-tagdata"> 2317 <span class="jd-tagtitle">Constant Value: </span> 2318 <span> 2319 2320 "time_to_live" 2321 2322 </span> 2323 </div> 2324 2325 </div> 2326 </div> 2327 2328 2329 2330 <A NAME="TOKEN_CANONICAL_REG_ID"></A> 2331 2332 <div class="jd-details api apilevel-"> 2333 <h4 class="jd-details-title"> 2334 <span class="normal"> 2335 public 2336 static 2337 final 2338 String 2339 </span> 2340 TOKEN_CANONICAL_REG_ID 2341 </h4> 2342 <div class="api-level"> 2343 2344 2345 2346 2347 </div> 2348 <div class="jd-details-descr"> 2349 2350 <div class="jd-tagdata jd-tagdescr"><p>Token returned by GCM when the requested registration id has a canonical 2351 value. 2352 </p></div> 2353 2354 2355 <div class="jd-tagdata"> 2356 <span class="jd-tagtitle">Constant Value: </span> 2357 <span> 2358 2359 "registration_id" 2360 2361 </span> 2362 </div> 2363 2364 </div> 2365 </div> 2366 2367 2368 2369 <A NAME="TOKEN_ERROR"></A> 2370 2371 <div class="jd-details api apilevel-"> 2372 <h4 class="jd-details-title"> 2373 <span class="normal"> 2374 public 2375 static 2376 final 2377 String 2378 </span> 2379 TOKEN_ERROR 2380 </h4> 2381 <div class="api-level"> 2382 2383 2384 2385 2386 </div> 2387 <div class="jd-details-descr"> 2388 2389 <div class="jd-tagdata jd-tagdescr"><p>Token returned by GCM when there was an error sending a message. 2390 </p></div> 2391 2392 2393 <div class="jd-tagdata"> 2394 <span class="jd-tagtitle">Constant Value: </span> 2395 <span> 2396 2397 "Error" 2398 2399 </span> 2400 </div> 2401 2402 </div> 2403 </div> 2404 2405 2406 2407 <A NAME="TOKEN_MESSAGE_ID"></A> 2408 2409 <div class="jd-details api apilevel-"> 2410 <h4 class="jd-details-title"> 2411 <span class="normal"> 2412 public 2413 static 2414 final 2415 String 2416 </span> 2417 TOKEN_MESSAGE_ID 2418 </h4> 2419 <div class="api-level"> 2420 2421 2422 2423 2424 </div> 2425 <div class="jd-details-descr"> 2426 2427 <div class="jd-tagdata jd-tagdescr"><p>Token returned by GCM when a message was successfully sent. 2428 </p></div> 2429 2430 2431 <div class="jd-tagdata"> 2432 <span class="jd-tagtitle">Constant Value: </span> 2433 <span> 2434 2435 "id" 2436 2437 </span> 2438 </div> 2439 2440 </div> 2441 </div> 2442 2443 2444 2445 2446 <!-- Fields --> 2447 2448 2449 <!-- Public ctors --> 2450 2451 2452 2453 <!-- ========= CONSTRUCTOR DETAIL ======== --> 2454 <!-- Protected ctors --> 2455 2456 2457 2458 <!-- ========= METHOD DETAIL ======== --> 2459 <!-- Public methdos --> 2460 2461 2462 2463 <!-- ========= METHOD DETAIL ======== --> 2464 2465 2466 2467 <!-- ========= END OF CLASS DATA ========= --> 2468 <A NAME="navbar_top"></A> 2469 2470 <div id="footer" class="wrap" > 2471 2472 2473 <div id="copyright"> 2474 2475 Except as noted, this content is licensed under <a 2476 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 2477 For details and restrictions, see the <a href="/license.html"> 2478 Content License</a>. 2479 </div> 2480 <div id="build_info"> 2481 2482 <script src="/timestamp.js" type="text/javascript"></script> 2483 <script>document.write(BUILD_TIMESTAMP)</script> 2484 2485 </div> 2486 2487 2488 <div id="footerlinks"> 2489 2490 <p> 2491 <a href="/about/index.html">About Android</a> | 2492 <a href="/legal.html">Legal</a> | 2493 <a href="/support.html">Support</a> 2494 </p> 2495 </div> 2496 2497 </div> <!-- end footer --> 2498 </div> <!-- jd-content --> 2499 2500 </div><!-- end doc-content --> 2501 2502 </div> <!-- end body-content --> 2503 2504 2505 2506 2507 2508 2509 </body> 2510 </html> 2511