event.push_type
parameter within Create Event request. With platform-based push notification, you can use all specified features of a particular platform. There are no restrictions.
key=value
string where a key
is raw text and value
is CGI escaped and Base64 encoded. Each pair should be separated by &
.
Example:
Plain message: key1=c29tZXZhbHVlMQ==&key2=YW5vdGhlcnZhbHVlMg==&key3=dGhpcmRleGFtcGxl
&
should be escaped by %26.{ "aps" : { "alert" : "You got your emails.", "badge" : 9, "sound" : "bingbong.aiff" }, "acme1" : "bar", "acme2" : 42 }
ew0KICAgICJhcHMiIDogew0KICAgICAgICAiYWxlcnQiIDogIllvdSBnb3QgeW91ciBlbWFpbHMuIiwNCiAgICAgICAgImJhZ GdlIiA6IDksDQogICAgICAgICJzb3VuZCIgOiAiYmluZ2JvbmcuYWlmZiINCiAgICB9LA0KICAgICJhY21lMSIgOiAiYmFyIiwNCiAg ICAiYWNtZTIiIDogNDINCn0=
payload=
before message
): event.message=payload=ew0KICAgICJhcHMiIDogew0KICAgICAgICAiYWxlcnQiIDogIllvdSBnb3QgeW91ciBlbWFpbHMuIiwNCiAgICAgICAg ImJhZGdlIiA6IDksDQogICAgICAgICJzb3VuZCIgOiAiYmluZ2JvbmcuYWlmZiINCiAgICB9LA0KICAgICJhY21lMSIgOiAiYmFyIiwNCi AgICAiYWNtZTIiIDogNDINCn0=
data.message
key is required and should be first.collapse_key
is added automatically before sending and contains value event<ID>
.data.key1=value1&...&data.keyN=valueN
.data.message=I love M&M's! Especially red one!
data.message=I+love+M%26M%27s%21+Especially+red+one%21
data.message=SStsb3ZlK00lMjZNJTI3cyUyMStFc3BlY2lhbGx5K3JlZCtvbmUlMjE=
event.message=data.message=SStsb3ZlK00lMjZNJTI3cyUyMStFc3BlY2lhbGx5K3JlZCtvbmUlMjE=
event.push_type
parameter within a Create Event request.
I love M&M's! Especially red one!
SSBsb3ZlIE0mTSdzISBFc3BlY2lhbGx5IHJlZCBvbmUh
event.message=SSBsb3ZlIE0mTSdzISBFc3BlY2lhbGx5IHJlZCBvbmUh
message
push text will be translated to aps.alert.body
for iOS and to data.message
for Android.ios_badge
will be translated to aps.badge
for iOS. Ignored for Android.ios_sound
will be translated to aps.sound
for iOS. Ignored for Android.ios_content_available=1
will be translated to aps.content-available
for iOS. Ignored for Android.ios_mutable_content=1
will be translated to aps.mutable-content
for iOS. Ignored for Android.ios_category
will be translated to aps.category
for iOS. Ignored for Android.ios_voip=1
will initiate VoIP push notification for iOS if user has VoIP push subscription. Otherwise, iOS user will receive standard iOS push. For Android, it will be a standard push.data.X
.
Example:
{"message": "Message received from Bob", "ios_badge": 5, "ios_sound": "mysound.wav", "user_id": "234"}
c29tZXZhbHVlMQc29tZXZhbHVlMQc29tZXZhbHVlMQc29tZXZhbHVlMQc29tZXZhbHVlMQ
event.message=c29tZXZhbHVlMQc29tZXZhbHVlMQc29tZXZhbHVlMQc29tZXZhbHVlMQc29tZXZhbHVlMQ