docs(gorush): add image and collapse-id to request in readme (#487)
* #373 add image and collapse-id request * #373 add image and collapse-id request * #373 add image and collapse-id request
This commit is contained in:
parent
34e59dfeaa
commit
5f0ed4e6cd
|
@ -533,6 +533,7 @@ The Request body must have a notifications array. The following is a parameter t
|
|||
| data | string array | extensible partition | - | |
|
||||
| retry | int | retry send notification if fail response from server. Value must be small than `max_retry` field. | - | |
|
||||
| topic | string | send messages to topics | | |
|
||||
| image | string | image url to show in notification | - | only Android |
|
||||
| api_key | string | api key for firebase cloud message | - | only Android |
|
||||
| to | string | The value must be a registration token, notification key, or topic. | - | only Android |
|
||||
| collapse_key | string | a key for collapsing notifications | - | only Android |
|
||||
|
@ -543,6 +544,7 @@ The Request body must have a notifications array. The following is a parameter t
|
|||
| notification | string array | payload of a FCM message | - | only Android. See the [detail](#android-notification-payload) |
|
||||
| expiration | int | expiration for notification | - | only iOS |
|
||||
| apns_id | string | A canonical UUID that identifies the notification | - | only iOS |
|
||||
| collapse_id | string | An identifier you use to coalesce multiple notifications into a single notification for the user | - | only iOS |
|
||||
| push_type | string | The type of the notification. The value of this header is alert or background. | - | only iOS |
|
||||
| badge | int | badge count | - | only iOS |
|
||||
| category | string | the UIMutableUserNotificationCategory object | - | only iOS |
|
||||
|
@ -914,7 +916,7 @@ func main() {
|
|||
}
|
||||
```
|
||||
|
||||
See the Node.js example and see more detail frome [README](rpc/example/node/README.md):
|
||||
See the Node.js example and see more detail frome [README](rpc/example/node/README.md):
|
||||
|
||||
[embedmd]:# (rpc/example/node/client.js js)
|
||||
```js
|
||||
|
|
Loading…
Reference in New Issue