Transactional push notifications transactional-push-notifications
You can use ۶Ƶ Campaign to send transactional push notifications on iOS and Android mobile devices. These messages are received on mobile applications that you set up in ۶Ƶ Campaign by leveraging the Experience Cloud Mobile SDK.
To be able to send transactional push notifications, you need to configure ۶Ƶ Campaign accordingly. See Configuring a mobile application.
You can send two types of transactional push notifications:
- Transactional push notifications targeting an event
- Transactional push notifications targeting profiles from the ۶Ƶ Campaign database
Transactional push notifications targeting an event transactional-push-notifications-targeting-an-event
You can use ۶Ƶ Campaign to send anonymous transactional push notifications to all users who have opted in to receive notifications from your mobile application.
In this case, only the data contained in the event itself is used to define the delivery target. No data from the ۶Ƶ Campaign integrated profile database is leveraged.
Configuring an event-based transactional push notification configuring-event-based-transactional-push-notification
To send a transactional push notification to all users who have opted in to receive notifications from your mobile application, you first need to create and configure an event targeting the data contained in the event itself.
The event must contain the three following elements:
- A registration token, which is the user ID for one mobile application and one device. It may not correspond to any profile from the ۶Ƶ Campaign database.
- A mobile application name (one for all devices - Android and iOS). This is the ID of the mobile application configured in ۶Ƶ Campaign that will be used to receive push notifications on the users’ devices. For more on this, refer to Configuring a mobile application.
- A push platform (“gcm” for Android or “apns” for iOS).
To configure the event, follow the steps below:
-
When creating the event configuration, select the Push notification channel and the Real-time event targeting dimension (see Creating an event).
-
Add fields to the event. This will allow you to personalize the transactional message (see Defining the event attributes). In this example, define the “gateNumber”, “lastname” and “firstname” fields.
-
You can also enrich the content of your message. To do this, add fields from the table that you linked to your event configuration (see Enriching the event).
-
Preview and publish the event.
When previewing the event, the REST API contains the “registrationToken”, “application” and “pushPlatform” attributes that will be used to target the delivery.
Once the event has been published, a transactional push notification linked to the new event is automatically created. You can now modify and publish the message that was just created (see this section).
-
Integrate the event into your website (see Integrate the event triggering).
Sending an event-based transactional push notification sending-event-based-transactional-push-notification
For example, an airline company wants to invite its mobile application users to proceed to the relevant gate for boarding.
The company will send one transactional push notification per user (identified with a registration token), using one mobile application, through one single device.
-
Go the transactional message that was created to edit it. See Accessing transactional messages.
-
Click the Content block to modify your message’s title and body.
-
You can insert personalization fields to add elements that you defined when you created your event (see Defining the event attributes).
To find these fields, click the pencil next to an item, click Insert personalization field and select Context > Real-time event > Event context.
For more on editing a push notification content, see Preparing and sending a push notification.
-
You can also enrich the transactional message content if you want to use additional information from ۶Ƶ Campaign database (see Enriching the event).
-
Save your changes and publish the message. See Publishing a transactional message.
-
Using the ۶Ƶ Campaign Standard REST API, send an event to a registration token (ABCDEF123456789), using one mobile application (WeFlight), on Android (gcm), containing the boarding data:
code language-none { "registrationToken":"ABCDEF123456789", "application":"WeFlight", "pushPlatform":"gcm", "ctx": { "gateNumber":"Gate B18", "lastname":"Green", "firstname":"Jane" } }
For more on integrating the triggering of an event into an external system, see Integrate the event triggering.
If the registration token exists, the corresponding user receives a transactional push notification including the following content:
“Hello Jane Green, boarding has just started! Please proceed to Gate B18.”
Transactional push notifications targeting a profile transactional-push-notifications-targeting-a-profile
You can send a transactional push notification to the ۶Ƶ Campaign profiles who have subscribed to your mobile application. This delivery can contain personalization fields, such as the recipient’s first name, directly retrieved from the ۶Ƶ Campaign database.
In this case, the event must contain some fields allowing reconciliation with a profile from the ۶Ƶ Campaign database.
When targeting profiles, one transactional push notification is sent per mobile application and per device. For example, if an ۶Ƶ Campaign user has subscribed to two applications, this user will receive two notifications. If a user has subscribed to the same application with two different devices, this user will receive a notification on each device.
The mobile applications a profile has subscribed to are listed in the Mobile App Subscriptions tab of this profile. To access this tab, select a profile and click the Edit profile properties button on the right.
For more information on accessing and editing profiles, see About profiles.
Configuring a profile-based transactional push notification configuring-profile-based-transactional-push-notification
To send a transactional push notification to the ۶Ƶ Campaign profiles who have subscribed to your mobile application, you first need to create and configure an event targeting the ۶Ƶ Campaign database.
-
When creating the event configuration, select the Push notification channel and the Profile targeting dimension (see Creating an event).
By default, the transactional push notification will be sent to all mobile applications to which the recipients subscribed. To send the push notification to a specific mobile application, select it in the list. The other mobile applications will be targeted by the message but will be excluded from the sending.
-
Add fields to the event, if you want to personalize the transactional message (see Defining the event attributes).
note note NOTE You must add at least one field to create an enrichment. You do not need to create other fields such as First name and Last name as you will be able to use personalization fields from the ۶Ƶ Campaign database. -
Create an enrichment in order to link the event to the Profile resource (see Enriching the event) and select this enrichment as the Targeting enrichment.
note important IMPORTANT This step is mandatory for profile-based events. -
Preview and publish the event.
When previewing the event, the REST API does not contain an attribute specifying the registration token, the application name and the push platform as they will be retrieved from the Profile resource.
Once the event has been published, a transactional push notification linked to the new event is automatically created. You can now modify and publish the message that was just created (see this section).
-
Integrate the event into your website (see Integrate the event triggering).
Sending a profile-based transactional push notification sending-profile-based-transactional-push-notification
For example, an airline company wants to send a last call for boarding to all ۶Ƶ Campaign users who have subscribed to its mobile application.
-
Go the transactional message that was created to edit it. See Accessing transactional messages.
-
Click the Content block to modify your message’s title and body.
As opposed to configurations based on real-time events, you have direct access to all profile information to personalize your message. See Inserting a personalization field.
For more on editing a push notification content, see Preparing and sending a push notification.
-
Save your changes and publish the message. See Publishing a transactional message.
-
Using the ۶Ƶ Campaign Standard REST API, send an event to a profile:
code language-none { "ctx": { "email":"janegreen@email.com", "gateNumber":"D16", } }
For more on integrating the triggering of an event into an external system, see Integrate the event triggering.
The corresponding user receives a transactional push notification including the all personalization elements retrieved from the ۶Ƶ Campaign database.
Changing the target mapping in a transactional push notification change-target-mapping
Transactional push notifications use a specific target mapping which contains the technical settings required to send this type of deliveries.
To change this target mapping, follow the steps below:
-
From the transactional message list, select a push notification.
-
In the message dashboard, click the Edit properties button.
-
Expand the Advanced parameters section.
-
Click Select a ‘Target mapping’ element.
-
Select a target mapping from the list.
note note NOTE For optimal delivery preparation time and performance when sending profile-based transactional push notifications, use the Profile - Real-time event for Push (mapRtEventAppSubRcp) target mapping. -
Confirm your change and publish the message. See Publishing a transactional message.
note important IMPORTANT You must publish the message again for the change to be effective, otherwise the previous target mapping will still be used.