Skip to content

Commit 2d9702e

Browse files
committed
Doc Update: JSON must be string data only.
Change-Id: I63c240dde0ce245d32612464d9ebeb790c9be6ca
1 parent 9169b55 commit 2d9702e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ registerReceiver(mRetryReceiver, filter);
203203
<p>GCM allows a maximum of 4 different collapse keys to be used by the GCM server at any given time. In other words, the GCM server can simultaneously store 4 different send-to-sync messages, each with a different collapse key. If you exceed this number GCM will only keep 4 collapse keys, with no guarantees about which ones they will be.</p>
204204

205205
<h3 id="payload">Messages with payload</h3>
206-
<p>Unlike a send-to-sync message, every &quot;message with payload&quot; (non-collapsible message) is delivered. The payload the message contains can be up to 4K. For example, here is a JSON-formatted message in an IM application in which spectators are discussing a sporting event:</p>
206+
<p>Unlike a send-to-sync message, every &quot;message with payload&quot; (non-collapsible message) is delivered. The payload the message contains can be up to 4kb. For example, here is a JSON-formatted message in an IM application in which spectators are discussing a sporting event:</p>
207207

208208
<pre class="prettyprint pretty-json">{
209209
"registration_id" : "APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx...",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,8 @@ message sent by the application server. See <a href="adv.html#collapsible">Advan
651651
<tr>
652652
<td><code>data</code></td>
653653
<td>A JSON object whose fields represents the key-value pairs of the message's payload data. If present, the payload data it will be
654-
included in the Intent as application data, with the key being the extra's name. For instance, <code>"data":{"score":"3x1"}</code> would result in an intent extra named <code>score</code> whose value is the string <code>3x1</code>
655-
There is no limit on the number of key/value pairs, though there is a limit on the total size of the message. Optional.</td>
654+
included in the Intent as application data, with the key being the extra's name. For instance, <code>"data":{"score":"3x1"}</code> would result in an intent extra named <code>score</code> whose value is the string <code>3x1</code>.
655+
There is no limit on the number of key/value pairs, though there is a limit on the total size of the message (4kb). Note that the values <em>must be enclosed by strings</em>. If you want to include objects or other non-string data types (such as integers or booleans), you have to do the conversion to string yourself. Optional.</td>
656656
</tr>
657657
<tr>
658658
<td><code>delay_while_idle</code></td>

0 commit comments

Comments
 (0)