How to send Push Notifications with extra fields for API to the Message center?

Hello how are you?,
Some of you know how to send Extra fields to the message center by API?
Currently I do it like this:

{
    "audience": {
        "named_user": "e5e3e143e1060bcbd69e8fd306ec5d5321dsdd1312321asds"
    },
    "notification": {
        "android": {
            "template": {
                "template_id": "e2a20303-5178-42eb-917d-6196d8233232"
            },
            "extra": {
                "tipo": "Transaccional",
                "marca": "m1"
            }
        },
        "ios": {
            "template": {
                "template_id": "e2a20303-5178-42eb-917d-6196d8233232"
            },
            "extra": {
                "tipo": "Transaccional",
                "marca": "m1"
            }
        }
    },
    "device_types": [
        "android",
        "ios"
    ],
    "options": {
        "personalization": true
    }
}

Didn't find what you were looking for?

New post

Comments

0 comments

Please sign in to leave a comment.