Android Push Notification Format

Mindbox uses Firebase to send push notifications. Each notification only has a data field to ensure that you can process the receipt and design of such notifications.

However, this means that you need to explicitly implement the display of push notifications in the onMessageRecieved method.

Description of fields

message, title, and clickUrl = mandatory fields;
imageUrl and payload = optional fields that can be blank;
buttons = an array of up to 3 buttons.

{
    "data": {
        "title":"<Message title>",
        "message":"<Message text>",
        "clickUrl":"<URL of the push body>",
        "imageUrl":"<Image URL>",
        "payload":"<Any other additional JSON>",
        "buttons":[
            {
                "text":"<Button 1 text>",
                "url":"<Button 1 URL>",
                "uniqueKey":"<Button 1 GUID>"
            },
            {
                "text":"<Button 2 text>",
                "url":"<Button 2 URL>",
                "uniqueKey":"<Button 2 GUID>"
            },
            {
                "text":"<Button 3 text>",
                "url":"<Button 3 URL>",
                "uniqueKey":"<Button 3 GUID>"
            }
        ],
        "uniqueKey":"<Message GUID>"
    }
}