Advanced push campaign settings
There are many advanced settings available for Android and Fire OS push notifications sent through the Braze dashboard. This article will describe these features and how to use them successfully.
A notification ID is a unique identifier for a message category of your choosing that informs the messaging service to only respect the most recent message from that ID. Setting a notification ID allows you to send just the most recent and relevant message, rather than a stack of outdated, irrelevant ones.
To assign a notification ID, navigate to the composition page of the push you’d like to add the ID to select the Settings tab. Enter an integer in the Notification ID section. To update this notification after you’ve issued it, send another notification with the same ID that you used previously.
The time-to-live (TTL) field allows you to set a custom length of time to store messages with the push messaging service. The default values for time-to-live are 4 weeks for Firebase Cloud Messaging (FCM) and 31 days for Amazon Device Messaging (ADM).
For example, suppose your app is a game and you offer your users an in-game currency bonus if they maintain a streak of playing the game daily. You could send a push alerting a user that that streak is in danger of being broken if they’ve exceeded a certain number of days. However, if a user was to reconnect their device to the game app 4 weeks later with the time to live set to the default, then those messages would have already expired in the messaging service and would not be delivered.
Firebase messaging delivery priority
The Firebase Messaging Delivery Priority field lets you control whether a push is sent with “normal” or “high” priority to Firebase Cloud Messaging. See FCM documentation to learn more.
The summary text allows you to set additional text in the Expanded Notification view. The summary text will display under the body of the message in the expanded view. It also serves as a caption for notifications with images.
For push notifications that include images, the message text will be shown in the collapsed view, while the summary text will be displayed as the image caption when the notification is expanded. Check out the following animation for an example of this behavior.
The Custom URI feature allows you to specify a Web URL or an Android resource to navigate to when the notification is clicked. If no custom URI is specified, clicking on the notification brings users into your app. You can use the custom URI to deep-link inside your app as well as direct users to resources that exist outside of your app as well. This can be specified via our Messaging API or in the Settings in the push composer.
Notification display priority
The Notification Display Priority setting is no longer used on devices running Android O or newer. For newer devices, set the priority through notification channel configuration.
The priority level of a push notification affects how your notification is displayed in the notification tray relative to other notifications. It can also affect the speed and manner of delivery, as normal and lower priority messages may be sent with slightly higher latency or batched to preserve battery life, whereas high priority messages are always sent immediately.
This feature is useful for differentiating your messages based on how critical or time-sensitive they are. For example, a notification about dangerous road conditions would be a good candidate to receive a high priority, while a notification about an ongoing sale should receive a lower priority. You should consider whether or not using a disruptive priority is actually necessary for the notification that you are sending, as constantly taking the top spot in your users’ inbox or interrupting their other activities may have a negative impact.
In Android O, notification priority became a property of notification channels. You will need to work with your developer to define the priority for a channel during its configuration and then use the dashboard to select the proper channel when sending your notification sounds. For devices running versions of Android before O, specifying a priority level for Android and Fire OS notifications is possible via the Braze dashboard and Messaging API.
To message your full user base with a specific priority, we recommend that you indirectly specify the priority through notification channel configuration (to target O+ devices) and send the individual priority from the dashboard (to target <O devices).
Refer to the following table for priority levels that you can set on Android or Fire OS push notifications:
|Max||Urgent or time-critical messages.||
|High||Important communication, such as a new message from a friend.||
|Default||Most notifications. Use if your message doesn’t explicitly fall under any of the other priority types.||
|Low||Information that you want users to know about but does not require immediate action.||
|Min||Contextual or background information.||
For more information, refer to Google’s documentation on Android notifications.
Android push notifications provide the option to specify if your notification falls into a predefined category. The Android system UI may use this category to make ranking or filtering decisions about where to place the notification in the user’s notification tray.
|Alarm||Alarm or timer.|
|Call||Incoming call (voice or video) or similar synchronous communication request.|
|Asynchronous bulk message (email).|
|Error||Error in background operation or authentication status.|
|Message||Incoming direct message (SMS, instant message, etc.).|
|Progress||Progress of a long-running background operation.|
|Promotion||Promotion or advertisement.|
|Recommendation||A specific, timely recommendation for a single thing.|
|Service||Indication of running background service.|
|Social||Social network or sharing update.|
|Status||Ongoing information about device or contextual status.|
|System||System or device status update. Reserved for system use.|
|Transport||Media transport control for playback.|
Android push notifications provide an optional field to determine how a notification appears on the user’s lock screen. Refer to the following table for visibility options and descriptions.
|Public||Notification appears on the lock screen|
|Private||Notification is shown with “Content hidden” as the message|
|Secret||Notification is not shown on the lock screen|
Additionally, Android users can override how push notifications appear on their lock screen by changing the notification privacy setting on their device. This setting will override the visibility from the push notification.
Regardless of the visibility, all notifications will be shown on the user’s lock screen if the notification privacy setting on their device is Show all content (default setting). Likewise, notifications will not be shown on their lock screen if their notification privacy is set to Do not show notifications. The visibility only has an effect if their notification privacy is set to Hide sensitive content.
The visibility has no effect on devices earlier than Android Lollipop 5.0.0, meaning all notifications will be shown on these devices.
Refer to our Android documentation for more information.
In Android O, notification sounds became a property of notification channels. You will need to work with your developer to define the sound for a channel during its configuration and then use the dashboard to select the proper channel when sending your notifications.
For devices running versions of Android before Android O, Braze allows you to set the sound of an individual push message through the dashboard composer. You can do so by specifying a local sound resource on the device (for example,
Selecting Default in this field will play the default notification sound on the device. This can be specified via our Messaging API or in the Settings in the push composer.
Next, enter the full sound resource URI (for example,
android.resource://com.mycompany.myapp/raw/mysound) into the dashboard prompt.
To message your full user base with a specific sound, we recommend that you indirectly specify the sound through notification channel configuration (to target O+ devices) and send the individual sound from the dashboard (to target <O devices).