Skip to content

Commit 507c312

Browse files
committed
Doc change: New TTL error code.
Change-Id: I99844d28243e0d6592219f532db08855d73f338e
1 parent 2a17520 commit 507c312

File tree

1 file changed

+5
-2
lines changed
  • docs/html/guide/google/gcm

1 file changed

+5
-2
lines changed

docs/html/guide/google/gcm/gcm.jd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ messages.</li>
620620
Authorization:key=AIzaSyB-1uEai2WiUapxCs2Q0GZYzPu7Udno5aA
621621

622622
{
623-
"registration_id" : "APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx...",
623+
"registration_ids" : ["APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx..."],
624624
"data" : {
625625
...
626626
},
@@ -874,7 +874,10 @@ messages.
874874
<li>Implement exponential back-off in your retry mechanism. This means an exponentially increasing delay after each failed retry (e.g. if you waited one second before the first retry, wait at least two second before the next one, then 4 seconds and so on). If you're sending multiple messages, delay each one independently by an additional random amount to avoid issuing a new request for all messages at the same time.</li>
875875
</ul>
876876
Senders that cause problems risk being blacklisted.
877-
<br/>Happens when the HTTP status code is 500 or 503; or when the <code>error</code> field of a JSON object in the <code>results</code> array is <code>Unavailable</code>.
877+
<br/>Happens when the HTTP status code is 500 or 503, or when the <code>error</code> field of a JSON object in the <code>results</code> array is <code>InternalServerError</code> or <code>Unavailable</code>.</dd>
878+
879+
<dt id="ttl_error"><strong>Invalid Time To Live</strong></dt>
880+
<dd>The value for the Time to Live field must be an integer representing a duration in seconds between 0 and 2,419,200 (4 weeks). Happens when error code is <code>InvalidTtl</code>.
878881
</dd>
879882
</dl>
880883
<h4>Example responses</h4>

0 commit comments

Comments
 (0)