Config 5.5: Google Push Notification

To send Google Cloud Message, define the service in Blk:

"Google" : {
  "Api_key": string,
  "Collapse_key": string,
  "Delay_while_idle": string,
  "Time_to_live": int
}

where the parameters are described here. Then in the request where you want to send APNS, define key _gapple in the output data structure other:

"_ggoogle": {
  "To": string,
  "Title": string,
  "Content": string,
  "File": string,
  "Extra": {key: value, key: value, ...},
  key, value,
  key, value
}

Again, Content is the notification body which can be constructed from File and Extra too.

Comments are closed.