I’m trying to send a notification, and I am attempting to use the user’s first name.
I set them as properties from the FE:
if (my?.id && _enabled) {
wonderPush.push(['setProperty', 'string_firstName', my.first_name])
wonderPush.push(['setProperty', 'string_lastName', my.last_name])
wonderPush.push(['setProperty', 'string_email', my.email])
if (profile) {
wonderPush.push(['setProperty', 'string_gender', profile.gender])
}
}
When I check the properties on the user, they seem to work properly:
And the notification text is this:
{{ installation.custom.string_firstName | default:"Dear traveler" }}, we want to make sure you are okay!
When it is being sent, the firstName part NEVER works.
I am sending using the /deliveries
endpoint, and I am using campaignId
and targetUserIds
to target the appropriate users with the proper notification.