Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Default Structure

(Raw message)

Note

It shows all available Payloads fields, but not all of them are used in every message type.


Android SDK / React Native SDK (Firebase)


Code Block
languagejs
themeFadeToGrey
{
  "title": "...",
  "body": "...",
  "icon": "...",
  "type": "...",
  "id": "...",
  "url": "...",
  "actions": "[{\"action\": "\b0\", \"title\": \"...\"}, ...]",
  "action_urls": "[...]",
  "image": "...",
  "event": "{\"type\": \"...\", \"uri\": \"...\"}"
}


iOS SDK / React Native SDK (iOS)


Code Block
languagejs
themeFadeToGrey
{
  "aps": {
    "alert": {
      "title": "...",
      "subtitle": "...",
      "body": "...",
      "badge": 1
    },
    "mutable-content": 1
  },
  "image_url": "...",
  "event": {
    "type": "...",
    "uri": "..."
  },
  "src": {
    "type": "...",
    "id": "..."
  }
}
Basic Message


Raw message

Android SDK / React Native SDK (Firebase)


Code Block
languagejs
themeFadeToGrey
{
  "title": "...",
  "body": "...",
  "type": "transactional",
  "id": "order_delivered",
  "event": "ADDITIONAL_CUSTOM_STRING"
}


iOS SDK / React Native SDK (iOS)


Code Block
languagejs
themeFadeToGrey
{
  "aps": {
    "alert": {
      "title": "...",
      "subtitle": "...",
      "body": "...",
      "badge": 1
    },
    "mutable-content": 1
  },
  "image_url": "...",
  "event": "ADDITIONAL_CUSTOM_STRING",
  "src": {
    "type": "transactional",
    "id": "order_delivered"
  }
}


Simple

Android SDK / React Native SDK (Firebase)


Code Block
languagejs
themeFadeToGrey
{
  "title": "Welcome aboard!",
  "body": "Hey, it's nice to know you're with us now. Check new updates in our application.",
  "type": "bulk",
  "id": "33631",
  "icon": "..."
}


iOS SDK / React Native SDK (iOS)


Code Block
languagejs
themeFadeToGrey
{
  "aps": {
    "alert": {
      "title": "Welcome aboard!",
      "subtitle": "Greeting message.",
      "body": "Hey, it's nice to know you're with us now. Check new updates in our application.",
      "badge": 1
    },
    "mutable-content": 1
  },
  "image_url": "...",
  "src": {
    "type": "bulk",
    "id": "33631"
  }
}


Open Web Link

Android SDK / React Native SDK (Firebase)


Code Block
languagejs
themeFadeToGrey
{
  "title": "Only today",
  "body": "This special offer for Dyson products only for you!",
  "type": "bulk",
  "id": "XFMjM4VAF4",
  "actions": "[{\"action\": "\b0\", \"title\": \"...\"}, ...]",
  "event": "{\"type\": \"web\", \"uri\": \"https://example.com/landing/promo\"}"
}


iOS SDK / React Native SDK (iOS)


Code Block
languagejs
themeFadeToGrey
{
  "aps": {
    "alert": {
      "title": "Only today",
      "subtitle": "Special Offer",
      "body": "This special offer for Dyson products only for you!",
      "badge": 1
    },
    "mutable-content": 1
  },
  "image_url": "...",
  "event": {
    "type": "web",
    "uri": "https://example.com/landing/promo"
  },
  "src": {
    "type": "bulk",
    "id": "XFMjM4VAF4"
  }
}


Open Category

Android SDK / React Native SDK (Firebase)


Code Block
languagejs
themeFadeToGrey
{
  "title": "Black Friday!",
  "body": "Check our big sale from this category",
  "type": "chain",
  "id": "72CONd54uF",
  "event": "{\"type\": \"category\", \"uri\": \"BFRIDAY_CATEGORY_ID\"}"
}


iOS SDK / React Native SDK (iOS)


Code Block
languagejs
themeFadeToGrey
{
  "aps": {
    "alert": {
      "title": "Black Friday!",
      "subtitle": "Discount",
      "body": "Check our big sale from this category",
      "badge": 1
    },
    "mutable-content": 1
  },
  "image_url": "...",
  "event": {
    "type": "category",
    "uri": "BFRIDAY_CATEGORY_ID"
  },
  "src": {
    "type": "chain",
    "id": "72CONd54uF"
  }
}


Open Product

Android SDK / React Native SDK (Firebase)


Code Block
languagejs
themeFadeToGrey
{
  "title": "...",
  "body": "...",
  "type": "chain",
  "id": "ugLxQ7KrnL",
  "event": "{\"type\": \"product\", \"uri\": \"PRODUCT123PRODUCT_ID\"}"
}


iOS SDK / React Native SDK (iOS)


Code Block
languagejs
themeFadeToGrey
{
  "aps": {
    "alert": {
      "title": "...",
      "subtitle": "...",
      "body": "...",
      "badge": 1
    },
    "mutable-content": 1
  },
  "image_url": "...",
  "event": {
    "type": "product",
    "uri": "PRODUCT123PRODUCT_ID"
  },
  "src": {
    "type": "chain",
    "id": "ugLxQ7KrnL"
  }
}
Open


Custom

Page

Android SDK / React Native SDK (Firebase)


Code Block
languagejs
themeFadeToGrey
{
  "title": "...",
  "body": "...",
  "type": "transactional",
  "id": "order_delivered",
  "event": "{\"type\": \"custom\", \"uripayload\": \"order/status/36\", \"payload\": {}ADDITIONAL_JSON\"}"
}


iOS SDK / React Native SDK (iOS)


Code Block
languagejs
themeFadeToGrey
{
  "aps": {
    "alert": {
      "title": "...",
      "subtitle": "...",
      "body": "...",
      "badge": 1
    },
    "mutable-content": 1
  },
  "image_url": "...",
  "event": {
    "type": "custom",
    "uripayload": "order/status/36",
    "payload": {}ADDITIONAL_JSON"
  },
  "src": {
    "type": "transactional",
    "id": "order_delivered"
  }
}




Column

Page Navigation

Table of Contents
maxLevel1
indent0px
stylenone




Related Pages

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
cqllabel in ( "notifications" , "apppush" )