From 5f0ed4e6cd78fca3c3a1df91fd652beec0e17a45 Mon Sep 17 00:00:00 2001 From: Romanenko Alexey Date: Sun, 15 Mar 2020 19:36:20 +0700 Subject: [PATCH] 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 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0eb9fc2..88335f0 100644 --- a/README.md +++ b/README.md @@ -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