You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add support for broadcast push notifications ([#163](https://github.com/parse-community/node-apn/issues/163)) ([ccd0781](https://github.com/parse-community/node-apn/commit/ccd0781d3c4f56ce8356eeca0fa050100967c6ae))
Copy file name to clipboardExpand all lines: doc/notification.markdown
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,12 +163,24 @@ The properties below are sent alongside the notification as configuration and do
163
163
164
164
#### notification.topic
165
165
166
-
_Required_: The destination topic for the notification.
166
+
_Required_: The destination topic for the notification. If you want to set a `pushtotalk` push type, the `topic` must use your app’s bundle ID with `.voip-ptt` appended to the end. If you want to set a `liveactivity` push type, the `topic` must use your app’s bundle ID with `.push-type.liveactivity` appended to the end.
167
167
168
168
#### notification.id
169
169
170
170
A UUID to identify the notification with APNS. If an `id` is not supplied, APNS will generate one automatically. If an error occurs the response will contain the `id`. This property populates the `apns-id` header.
171
171
172
+
#### notification.collapseId
173
+
174
+
Multiple notifications with same collapse identifier are displayed to the user as a single notification. The value should not exceed 64 bytes.
175
+
176
+
#### notification.requestId
177
+
178
+
An optional custom request identifier that’s returned back in the response. The request identifier must be encoded as a UUID string.
179
+
180
+
#### notification.channelId
181
+
182
+
The channel ID is a base64-encoded string that identifies the channel to publish the payload. The channel ID is generated by sending channel creation request to APNs.
183
+
172
184
#### notification.expiry
173
185
174
186
A UNIX timestamp when the notification should expire. If the notification cannot be delivered to the device, APNS will retry until it expires. An expiry of `0` indicates that the notification expires immediately, therefore no retries will be attempted.
@@ -186,12 +198,8 @@ Provide one of the following values:
186
198
187
199
(Required when delivering notifications to devices running iOS 13 and later, or watchOS 6 and later. Ignored on earlier system versions.)
188
200
189
-
The type of the notification. The value of this header is `alert`or `background`. Specify `alert` when the delivery of your notification displays an alert, plays a sound, or badges your app's icon. Specify `background` for silent notifications that do not interact with the user.
201
+
The type of the notification. The value of this header is `alert`, `background`, `pushtotalk`, or `liveactivity`. Specify `alert` when the delivery of your notification displays an alert, plays a sound, or badges your app's icon. Specify `background` for silent notifications that do not interact with the user. Specify `pushtotalk` for notifications that provide information about updates to your application’s push to talk services. Specify `liveactivity` for live activities.
190
202
191
203
The value of this header must accurately reflect the contents of your notification's payload. If there is a mismatch, or if the header is missing on required systems, APNs may delay the delivery of the notification or drop it altogether.
192
204
193
-
#### notification.collapseId
194
-
195
-
Multiple notifications with same collapse identifier are displayed to the user as a single notification. The value should not exceed 64 bytes.
196
-
197
-
[pl]:https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html"Local and Push Notification Programming Guide: Apple Push Notification Service"
205
+
[pl]:https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html"Local and Push Notification Programming Guide: Apple Push Notification Service"
* The UNIX timestamp representing when the notification should expire. This does not contribute to the 2048 byte payload size limit. An expiry of 0 indicates that the notification expires immediately.
222
222
*/
223
223
publicexpiry: number;
224
+
/**
225
+
* Multiple notifications with same collapse identifier are displayed to the user as a single notification. The value should not exceed 64 bytes.
226
+
*/
227
+
publiccollapseId: string;
228
+
/**
229
+
* Multiple notifications with same collapse identifier are displayed to the user as a single notification. The value should not exceed 64 bytes.
230
+
*/
231
+
publicrequestId: string;
232
+
/**
233
+
* An optional custom request identifier that’s returned back in the response. The request identifier must be encoded as a UUID string.
234
+
*/
235
+
publicchannelId: string;
224
236
/**
225
237
* Provide one of the following values:
226
238
*
@@ -229,9 +241,14 @@ export class Notification {
229
241
* - 5 - The push message is sent at a time that conserves power on the device receiving it.
230
242
*/
231
243
publicpriority: number;
232
-
233
-
publiccollapseId: string;
244
+
/**
245
+
* The type of the notification.
246
+
*/
234
247
publicpushType: NotificationPushType;
248
+
249
+
/**
250
+
* An app-specific identifier for grouping related notifications.
0 commit comments