Method for Working with Push Notifications

Platform server receives message from back end and sends it to mobile clients. To use push notifications service, enter templates for sending push messages and set up push notification parameters for each service in the administrator interface.

Request:

NOTE. To use push notifications, the user must be authenticated using Device Id.

Request tokens list

Add a token

Delete token

Request topics list

Subscribe user to topic

Unsubscribe user from topic

Sending Push Notification

Method: POST.

The request body contains parameters that will be used in template.

A request to send push notification can be of two types:

For example, for the template:

{

    "aps": {

        "alert": {

            "title": "{{title}}",

            "body": "{{body}}"

        }

    }

}

The corresponding request body:

{

    "title": "Title text",

    "body": "Body text"

}

Response

On successful message publication:

{"status": "OK"}

See also:

Server API | Setting Up Push Notifications