Push Notifications
Create Event
Create notification event.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.quickblox.com/llms.txt
Use this file to discover all available pages before exploring further.
Recipe
Create event
Create event
3. Set a push notification environment
Use an
environment parameter to set the notification environment.Here, the production environment is set which means the pushes will work for a production environment only.6. Set a push message
A push message text should be Base64-encoded.Here, the iOS push message is set. For iOS push, you should add a payload before a message.
7. Set a push notification platform
Use a
push_type parameter to set the push notification platform.Here, the push_type is set to apns. This means that the push will be delivered to iOS devices.Create event with period date
Create event with period date
3. Set a push notification environment
Use an
environment parameter to set the notification environment.Here, the production environment is set which means the pushes will work for a production environment only.4. Set an event type
Use an
event_type method to set the event type.Here, the period_date event type is set. This event occurs within a given period from the initial date. Valid only if the period is specified.8. Set a push message
A push message text should be Base64-encoded.Here, the iOS push message is set. For iOS push, you should add a payload before a message.
9. Set a push notification platform
Use a
push_type parameter to set the push notification platform.Here, the push_type is set to apns. This means that the push will be delivered to iOS devices.Create event for users with tags
Create event for users with tags
Body Parameters
Type of notification. Possible values are:
push and email.Used only if
notification_type=push, otherwise ignored. If not set, the notification will be delivered to all possible devices for specified users. Possible values are: apns, apns_voip, gcm.An environment of the notification. Possible values are:
development and production.Event type. Possible values are:
one_shot- a one-time event caused by an external object (valid only if thedateis not specified).fixed_date- a one-time event that occurs at a specified date (valid only if thedateis specified).period_date- is a reusable event that occurs within a given period from the initial date (valid only if theperiodis specified).
Default:one_shot- ifdateis not specified.period_date- ifperiodis specified.fixed_date- ifdateis specified.
Encoded message payload. Possible values are: Base64 encoded plain text or
push notification payload (Push notifications formats).
The date of the event to send on. If the
event_type=fixed_date, the date can not be in the past.The date when the event is completed. Must be not less than the
date. The period of the event in seconds.
The name of the event. Service information. Only for your own usage.
Headers
A user or application session token. See Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.
Responses
201
201
A successful response.