Push Notifications Subscriptions
Methods
-
staticQB.pushnotifications.subscriptions.create(params, callback)
modules/qbPushNotifications.js, line 55 -
Create device based subscription.
Name Type Description paramsobject Object of parameters. Name Type Description notification_channelstring Declare which notification channels could be used to notify user about events. Allowed values: apns, apns_voip, gcm, mpns, bbps and email. push_tokenobject Object of parameters. Name Type Description environmentstring Determine application mode. It allows conveniently separate development and production modes. Allowed values: evelopment or production. bundle_identifierstring optional A unique identifier for client's application. In iOS, this is the Bundle Identifier. In Android - package id. client_identification_sequencestring Identifies client device in 3-rd party service like APNS, GCM/FCM, BBPS or MPNS. Initially retrieved from 3-rd service and should be send to QuickBlox to let it send push notifications to the client. deviceobject Object of parameters. Name Type Description platformstring Platform of device, which is the source of application running. Allowed values: ios, android, windows_phone, blackberry. udidstring UDID (Unique Device identifier) of device, which is the source of application running. This must be anything sequence which uniquely identify particular device. This is needed to support schema: 1 User - Multiple devices. callbackcreatePushSubscriptionCallback The createPushSubscriptionCallback function. -
staticQB.pushnotifications.subscriptions.delete(id, callback)
modules/qbPushNotifications.js, line 86 -
Remove a subscription by its identifier.
Name Type Description idnumber An id of subscription to remove. callbackdeletePushSubscriptionCallback The deletePushSubscriptionCallback function. -
staticQB.pushnotifications.subscriptions.list(callback)
modules/qbPushNotifications.js, line 70 -
Retrieve subscriptions for the user which is specified in the session token.
Name Type Description callbacklistPushSubscriptionCallback The listPushSubscriptionCallback function.