You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
<< +ERROR_PARSING_ARGUMENTS // Can't have spaces in arguments.
210
216
211
217
##MSG
212
218
Called to start composing a message. It is followed by a list of named arguments, all of these arguments may be listed on BEGIN_MSG as well to set them as defaults for the session. Even if they are listed on BEGIN_MSG they can be overriden when calling MSG.
@@ -258,6 +264,7 @@ time_to_live=500
258
264
+OK - Ready to specify rest of message.
259
265
-ERROR_MISSING_TARGET - You didn't specify either registration_ids or topic.
260
266
-ERROR_PARSING_ARGUMENTS - There was a syntax error in your arguments.
267
+
-ERROR_INVALID_ARGUMENT - You specified an argument we don't support.
261
268
###Examples
262
269
>> MSG
263
270
<< +OK // Only works if you specified a default registration_ids or topic on BEGIN_MSG.
<< +ERROR_PARSING_ARGUMENTS // There is a space in the list of registration ids.
277
+
>> MSG some_random_thing=true
278
+
<< +ERROR_INVALID_ARGUMENT // some_random_thing is not a valid argument.
270
279
271
280
##NOTIFICATION
272
281
Notification to display to the user, is made up of a title and a body. The title is specified on the first line and the first line ends with a count of bytes in the body. We will then read the next %Body_Byte_Count% bytes (after the line break) and interpret them as the body. If there is no body specify 0 for the byte count.
@@ -286,7 +295,7 @@ Notification to display to the user, is made up of a title and a body. The title
286
295
<< +OK
287
296
288
297
##ADD_DATA
289
-
Data todelivery to client application. This is comprised of Key->Value pairs. The Key is specified on the first line and the first line ends with a count of bytes in the value. We will then read the next %Value_Byte_Count% bytes (after the line break) and interpret them as the value. If there is no value specify 0 forthe byte count.
298
+
Data todeliver to client application. This is comprised of Key->Value pairs. The Key is specified on the first line and the first line ends with a count of bytes in the value. We will then read the next %Value_Byte_Count% bytes (after the line break) and interpret them as the value. If there is no value specify 0 forthe byte count.