Skip to main content

Overview

The Notification Update feature updates an existing push notification in the users’ notification drawer by sending a new notification with the same Update key. This feature helps keep notifications relevant and prevents clutter.

Use Cases

The following are some use cases for this feature:
  • Order tracking: Update users with the latest delivery status of their package by overriding the initial shipment confirmation message using the order ID.
  • E-commerce: If a user is eligible for multiple offers that can’t be combined, you can use a selection key. This ensures the user sees only one relevant offer at a time, preventing confusion and making their shopping experience smooth and clear.
  • Media and entertainment: You can update a breaking news alert with the latest confirmed details after the initial notification.
  • Travel and hospitality: You can update gate change information for a flight directly within the initial boarding reminder notification. For more information, refer here.
  • Gaming: Inform players of an unscheduled server maintenance update, overriding the initial event reminder.

How Notification Update Works

  • Ensure you have the MoEngage Android SDK version 14.00.00 or later and the SDK with the isMultipleNotificationInDrawerEnabled is set to true while initializing the SDK to access the Notification Update feature on Android devices.
  • Ensure you have MoEngage iOS SDK version 9.24.0 and later to access the Notification Update feature.
Perform the following steps to update your push notifications:
  1. In the second step of push campaign creation, Content, expand the Advanced tab.
  2. In the Update key field under the Advanced section, enter a unique string value.
    • This field accepts a single input string.
    • It supports personalization.
    • MoEngage automatically modifies the update key to ensure it does not exceed the 45-character limit. It removes non-Latin scripts, special characters, and spaces to restrict the key composition to ASCII characters exclusively.
    • This update ID will be used to identify and update related push notifications. Ensure you use the same update ID for all push notifications intended to update each other.
  3. Complete the remaining steps of the push campaign creation process and send your campaign.

Example

We will create a Push campaign for a new app called MoEngage Travels. This app wants to send push notifications to update the gate information for a flight directly within the initial boarding reminder notification sent to passengers departing from London International Airport. Scenario (Flight LH456 departure):
  • Initial boarding reminder (sent 2 hours before departure):
    • Content: Reminder: Your flight LH456 to London departs at 3:00 PM from Gate D7. Please proceed to the gate.
    • Update key: flightlh456update
  • Gate change update (sent 1 hour before departure):
    • Content: Important Update: The departure gate for your flight LH456 to London has changed to Gate C2. Please proceed to the new gate.
    • Update key: flightlh456update

Outcome

The Push campaign for the MoEngage Travels app successfully updated the initial boarding reminder notification with the new gate information for flight LH 456. Using the same update key (flightlh456update), the gate change message updated the initial notification, ensuring passengers receive accurate and timely updates without duplication.

On Device Behavior

In Android

  • Update behavior:
    • If a new notification (B) with the same update key as an existing notification (A) arrives, if B’s sent time is greater than A’s sent time, B replaces A. Otherwise, B is discarded.
    • If two notifications with the same update key arrive simultaneously, only the latest one is shown.
  • The Notification Received event: The value of the update key appears as an event property named Update Key.
  • User experience:
    • A slight flicker may occur when a notification updates.
    • Notification sounds, alerts, and channel settings remain unchanged.
    • Notifications are not replaced in the Push Notification Center or Self-Handled Notification Center, but the update key and sent time are included in the payload.
    • Notification update works independently of Notification Grouping.

Using Update Key With Group Key

If your campaigns also use a group key, plan both keys together. For more information about the group key, refer to Push Notification Grouping.
On Android, the following group key and update key combinations can replace an unrelated notification or leave an empty group in the notification drawer. Some devices, such as Motorola, show an empty group as a blank notification.
  • The same value is used as both a group key and an update key. This applies to the same campaign and to different campaigns. For example, campaign A has the group key newssports and campaign B has the update key newssports.
  • An update key is reused with a different group key or without a group key. The update replaces the original notification, and the original group is left empty. For example, campaign A has the group key orderupdates and the update key order1234. Campaign B has no group key and the update key order1234. When campaign B arrives, the group of campaign A is left empty.
To avoid blank notifications:
  • Use different values for the group key and the update key. Never use the same value for both.
  • Always send an update key with the same group key, or always send it without a group key.
Android SDK 14.07.00 fixed an issue where a blank notification was shown on certain OEMs upon clicking the last notification within a notification group. This fix does not prevent the blank notifications caused by the combinations above.

In iOS

  • Update behavior: iOS updates notifications with the same update key.
  • The Notification Received event: The value of the update key appears as an event property named Update Key.
  • Notifications are not replaced in the Push Notification Center or Self-Handled Notification Center, but the update key is included in the payload.
  • Notification update works independently of Notification Grouping.

FAQs

No, replacing a notification does not affect analytics. Impressions are still counted for replaced notifications, and clicks on replaced notifications are attributed to the most recent campaign.
No, Push inbox and Self-handled inbox retain all notifications, but the update key is included in the payload.
The update key does not affect notification sounds, alerts, or channel settings.
No, notification update is part of the standard campaign creation process and does not require additional permissions.
Yes. When a notification is replaced, undelivered notifications are dropped by FCM/APNS, which may reduce campaign impressions. Users will see only one notification at a time, potentially leading to fewer clicks.
Yes, the Notification Update feature is compatible with all push templates. For instance, a notification using the Timer template can replace a notification that uses the Image Banner template.
This happens because the isMultipleNotificationInDrawerEnabled config is set to false. In this case, the latest notification replaces the previous one, ensuring that only one notification remains visible, regardless of the group key and update key configurations.

Best Practices

  • Use unique update keys to prevent unintended notification updates.
  • Test your push campaigns before launching to ensure notifications behave as expected.
  • Monitor analytics to track notification performance.
  • Combine with notification grouping for a more organized user experience.