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
Copy file name to clipboardExpand all lines: README.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,6 +133,9 @@ const options = {
133
133
'< header name >':'< header value >'
134
134
},
135
135
contentEncoding:'< Encoding type, e.g.: aesgcm or aes128gcm >',
136
+
urgency:'< Default is "normal" >',
137
+
topic:'< Use a maximum of 32 characters from the URL or filename-safe Base64 characters sets. >',
138
+
136
139
proxy:'< proxy server options >',
137
140
agent:'< https.Agent instance >'
138
141
}
@@ -183,6 +186,8 @@ request only. This overrides any API key set via `setGCMAPIKey()`.
183
186
retained by the push service (by default, four weeks).
184
187
-**headers** is an object with all the extra headers you want to add to the request.
185
188
-**contentEncoding** is the type of push encoding to use (e.g. 'aes128gcm', by default, or 'aesgcm').
189
+
-**urgency** is to indicate to the push service whether to send the notification immediately or prioritize the recipient’s device power considerations for delivery. Provide one of the following values: very-low, low, normal, or high. To attempt to deliver the notification immediately, specify high.
190
+
-**topic** optionally provide an identifier that the push service uses to coalesce notifications. Use a maximum of 32 characters from the URL or filename-safe Base64 characters sets.
186
191
-**proxy** is the [HttpsProxyAgent's constructor argument](https://github.com/TooTallNate/node-https-proxy-agent#new-httpsproxyagentobject-options)
187
192
that may either be a string URI of the proxy server (eg. http://< hostname >:< port >)
188
193
or an "options" object with more specific properties.
@@ -357,6 +362,8 @@ const options = {
357
362
'< header name >':'< header value >'
358
363
},
359
364
contentEncoding:'< Encoding type, e.g.: aesgcm or aes128gcm >',
365
+
urgency:'< Default is normal "Defult" >',
366
+
topic:'< Use a maximum of 32 characters from the URL or filename-safe Base64 characters sets. >',
360
367
proxy:'< proxy server options >'
361
368
}
362
369
@@ -411,6 +418,8 @@ request only. This overrides any API key set via `setGCMAPIKey()`.
411
418
retained by the push service (by default, four weeks).
412
419
-**headers** is an object with all the extra headers you want to add to the request.
413
420
-**contentEncoding** is the type of push encoding to use (e.g. 'aesgcm', by default, or 'aes128gcm').
421
+
-**urgency** is to indicate to the push service whether to send the notification immediately or prioritize the recipient’s device power considerations for delivery. Provide one of the following values: very-low, low, normal, or high. To attempt to deliver the notification immediately, specify high.
422
+
-**topic** optionally provide an identifier that the push service uses to coalesce notifications. Use a maximum of 32 characters from the URL or filename-safe Base64 characters sets.
414
423
-**proxy** is the [HttpsProxyAgent's constructor argument](https://github.com/TooTallNate/node-https-proxy-agent#new-httpsproxyagentobject-options)
415
424
that may either be a string URI of the proxy server (eg. http://< hostname >:< port >)
416
425
or an "options" object with more specific properties.
0 commit comments