From 65489d13e65ed8b98667608adff7475b859f2b1f Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 24 Dec 2016 16:06:05 +0800 Subject: [PATCH] update readme. Signed-off-by: Bo-Yi Wu --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2f10847..f065157 100644 --- a/README.md +++ b/README.md @@ -380,7 +380,7 @@ Request body must has a notifications array. The following is a parameter table |-------------------------|--------------|---------------------------------------------------------------------------------------------------|----------|---------------------------------------------------------------| | tokens | string array | device tokens | o | | | platform | int | platform(iOS,Android) | o | 1=iOS, 2=Android | -| message | string | message for notification | o | | +| message | string | message for notification | - | | | title | string | notification title | - | | | priority | string | Sets the priority of the message. | - | `normal` or `high` | | content_available | bool | data messages wake the app by default. | - | | @@ -406,6 +406,8 @@ Request body must has a notifications array. The following is a parameter table | name | type | description | required | note | |----------------|------------------|--------------------------------------------------------------------------------------------------|----------|------| +| title | string | Apple Watch & Safari display this string as part of the notification interface. | - | | +| body | string | The text of the alert message. | - | | | subtitle | string | Apple Watch & Safari display this string as part of the notification interface. | - | | | action | string | The label of the action button. This one is required for Safari Push Notifications. | - | | | action-loc-key | string | If a string is specified, the system displays an alert that includes the Close and View buttons. | - | | @@ -415,7 +417,7 @@ Request body must has a notifications array. The following is a parameter table | title-loc-args | array of strings | Variable string values to appear in place of the format specifiers in title-loc-key. | - | | | title-loc-key | string | The key to a title string in the Localizable.strings file for the current localization. | - | | -See more detail about [APNs Remote Notification Payload](https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/TheNotificationPayload.html#//apple_ref/doc/uid/TP40008194-CH107-SW1). +See more detail about [APNs Remote Notification Payload](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html#//apple_ref/doc/uid/TP40008194-CH17-SW1). ### Android notification payload