Customize Payload

You can use this default template and modify it to your individual needs:

Default template:

[
  {
    "operation": "shift",
    "spec": {
      "*": "&",
      "url": "url"
    }
  },
  {
    "operation": "default",
    "spec": {
      "firebasePushType": "data",
      "timeToLive": "1800",
      "icon": "https://www.mywebsite.de/images/logo.jpg",
      "url": "https://www.your-website.de"
    }
  }
]

Default payload before transformation:

{
  "title": "Default Title",
  "message": "This is the default message",
  "url": "https://www.your-website.de/web-service/sample-link"
}

Default payload after transformation:

{
  "title" : "Default Title",
  "message" : "This is the default message",
  "url" : "https://www.your-website.de/web-service/sample-link",
  "icon" : "https://www.mywebsite.de/images/logo.jpg",
  "firebasePushType" : "data",
  "timeToLive" : "1800"
}

Message Object:

Parameter

Type

Description

Required

Defaults

Comments

title

String

title of message

Required

-

message

String

message text

Required

-

icon

String

icon URL

Required

-

icon to be displayed in push notification

url

String

A web URL

Optional

-

URL to open when clicking on notification

firebasePushType

String

firebase message type

Optional

notification

whether firebase message type is 'notification' or 'data'.

timeToLive

Integer

time to live (in seconds)

Required

4 weeks

FCM message lifespan

To learn more about how to create and modify JOLT templates please follow up in our developer documentation: push-templates