Messaging and push notifications for mobile and other clients, supports Apple, Google and Webpush push notifications.
Emits a signal uninstall(client, device_id, user_id) on device invalidation or if a device token is invalid as reported by the server, user_id
may not be available.
- Description:
Messaging and push notifications for mobile and other clients, supports Apple, Google and Webpush push notifications.
Emits a signal
uninstall(client, device_id, user_id)on device invalidation or if a device token is invalid as reported by the server, user_id may not be available.
Type Definitions
callback(device, options)
- Description:
Deliver a notification for the given device token(s).
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
device |
string | where to send the message to, can be multiple ids separated by , or |. |
|||||||||||||||||||||||||||||||||
options |
object |
Properties
|