Learn how to send push notifications to users when they are offline.
deviceToken
is a device registration token generated by the APNs or GCM/FCM. The token can be unregistered by the APNs or GCM/FCM anytime. In this case, the device should be registered again and obtain a new token. When a new token is obtained, a new subscription should be created.Argument | Required | Description |
---|---|---|
event | Yes | A model for representing events. |
Argument | Required | Description |
---|---|---|
event | Yes | A model for representing events. |
deleteSubscription(withID: subscription.id)
method below. You can also specify the device ID to verify if the subscription is being deleted for a specific device.
Argument | Required | Description |
---|---|---|
subscription.id | yes | ID of QuickBlox subscription. |
deleteSubscription(withID: subscription.id)
method below. You can also specify the device ID to verify if the subscription is being deleted for a specific device.
Argument | Required | Description |
---|---|---|
subscription.id | yes | ID of the QuickBlox subscription. |
deviceToken
within the system and is set in the subscription
. See this section to learn how to subscribe a device to push notifications.