← API Reference Home
ESP RainMaker Neo Push Notification Payloads 0.8.0

Push-notification payload definitions for ESP RainMaker Neo, from the mobile app's perspective: the provider-native JSON the device receives, by integration_type.

integration_type Provider Payload shape
apns Apple aps + event_data
apns_sandbox Apple identical to apns
gcm Google data (+ android)

apns_sandbox is the development variant of apns (same payload). FCM and GCM are the same Google (Firebase) integration.

Setup flow

  1. GET /v1/integrations — discover the integration_id for the app's provider.
  2. PUT /v1/integrations/{integrationId}/endpoints — register the device token.
  3. The device then receives the payloads documented here.

Servers

  • https://sns.{region}.amazonaws.com/httpssns

    AWS SNS. ESP RainMaker Neo publishes one formatted payload per provider to the registered SNS endpoint; SNS forwards it to APNS (Apple, over HTTP/2) or FCM (Google, over HTTP) for delivery to the device. This is the only server ESP RainMaker Neo contacts; the provider gateways are reached by SNS, not directly.

    object
    region
    required
    string

    AWS region of the ESP RainMaker Neo deployment.

    Default value:"eu-west-1"

Operations

  • RECEIVE

    APNS payload, delivered to devices registered against an apns or apns_sandbox integration (the payload is identical for both).

    Operation IDreceiveApnsPush

    Available only on servers:

    Accepts the following message:

    APNS / APNS_SANDBOX notificationapnsNotification
    Message IDapnsNotification
    object [APNS payload]

    Examples

  • RECEIVE

    FCM (GCM) payload, delivered to devices registered against a gcm integration.

    Operation IDreceiveFcmPush

    Available only on servers:

    Accepts the following message:

    FCM (GCM) notificationfcmNotification
    Message IDfcmNotification
    object [FCM payload]

    A data message (no FCM notification block), rendered by the app.

    Examples

Messages

  • #1APNS / APNS_SANDBOX notificationapnsNotification
    Message IDapnsNotification
    object [APNS payload]
  • #2FCM (GCM) notificationfcmNotification
    Message IDfcmNotification
    object [FCM payload]

    A data message (no FCM notification block), rendered by the app.

Schemas

  • object [event_data]

    ESP RainMaker Neo event fields. APNS carries this at the top level; FCM nests it under data.event_data.

  • object [APNS payload]
  • object [aps]
  • object [FCM payload]

    A data message (no FCM notification block), rendered by the app.

  • object [data]