[Pushwoosh Plugin] Dynamic content values

Forge Component
(11)
Published on 2018-12-19 by OutSystems R&D
11 votes
Published on 2018-12-19 by OutSystems R&D

How can I set what the value of the dynamic content tags (e.g. name, age, etc.) should be per device?

Solution

try {    plugins.pushNotification.setTags({'PhoneNumber':$parameters.PhoneNumber,'CardNumber':$parameters.CardNumber});

    $parameters.Success = true;

}

catch(e) {

    $parameters.Success = false;

}

Solution

Addition, you can add UserId:

try {
    plugins.pushNotification.setUserId($parameters.VAT);
    $parameters.Success = true;
}
catch(e) {
    $parameters.Success = false;
}

Perfect, thanks.