Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cb9cf3c authored by Katie McCormick's avatar Katie McCormick
Browse files

resolved conflicts for merge of eaf84a3f to master

Change-Id: I6282f109116d6ffc63c8fe1d6ea18f8e25ae35f3
parents 8a7947f8 eaf84a3f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -653,7 +653,9 @@ message sent by the application server. See <a href="adv.html#collapsible">Advan
    <td><code>data</code></td>
    <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
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>. 

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. Also note that the key cannot be a reserved word ("from" or any word starting with "google."). Optional.</td>

  </tr>
  <tr>
    <td><code>delay_while_idle</code></td>
@@ -887,6 +889,7 @@ Check that the token you're sending inside the <code>Authorization</code> header
# curl --header "Authorization: key=$api_key" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send  -d "{\"registration_ids\":[\"ABC\"]}"</pre>



If you receive a 401 HTTP status code, your API key is not valid. Otherwise you should see something like this:<br/>

<pre>