Mobile message inbox

Learn to store push notifications in-app for easy access.

The Save to inbox option in Pushwoosh Customer Journey allows you to store push notifications in the app’s inbox, giving users the ability to access and review important messages at their convenience. This ensures that push notifications are not lost and can be revisited later, providing enhanced flexibility and user engagement.

Read more about how Message Inbox works.

To implement Message Inbox for web platforms, please refer to Web Message Inbox guide.

Setting up the inbox in your app

To implement Message Inbox in your app, add Pushwoosh Inbox library to your project. Please see our Github repos with the detailed instructions on setting up the Inbox and the sample projects:

iOS

https://github.com/Pushwoosh/pushwoosh-inbox-ui-ios-sdk#pushwoosh-inbox-ui

Android

https://github.com/Pushwoosh/pushwoosh-inbox-ui-android-sdk#pushwoosh-inbox-ui

Cross-platform frameworks

To implement Message Inbox in cross-platform apps, call the presentInboxUI method. Currently available on Cordova, React Native, Flutter, Xamarin.

Using Message Inbox in plugins with proguard

If your Android app uses proguard for code shrinking, you have to add the following rule to your proguard-rules.pro:

#INBOX
-keep public class com.pushwoosh.inbox.PushwooshInboxPlugin {
 *;
}

Unread Messages Badge

To display the number of unread messages on a badge over an Inbox icon, please use the following API methods:

iOS

[PWInbox unreadMessagesCountWithCompletion:^(NSInteger count, NSError *error) { }];

Android

PushwooshInbox.unreadMessagesCount(result -> { });

How to save a message to inbox

Any push notification can be saved to the Inbox. To enable this feature for a notification in a customer journey, toggle the Save to inbox option in the Push notification element you’ve added to the journey.

Control how long messages stay in your inbox

To ensure your inbox remains organized and relevant, set a specific retention period for messages. In the Remove from inbox dropdown, choose one of the following options:

  • Set a specific number of days a message should stay in your inbox before it's automatically removed. For example, you could set it to 3 days.

  • Select an exact date when the message will be deleted from your inbox.

Please note: The maximum retention period for messages in the inbox is six days. If you need to extend this limit, please contact our support team.

Customize the message icon

You have the option to customize the appearance of the stored notification by specifying an icon URL. This icon will be displayed next to the message in the inbox, serving as a visual identifier for the notification.

If no icon URL is provided, a default icon will be displayed alongside the message.

Configure action when Inbox message is clicked

Determine what happens when a user clicks on a notification stored in the inbox. You have two options:

  • Use the action you set in the push content. This means that the default behavior of the original push notification will be applied, such as redirecting the user to a specific URL or opening a designated screen in the app. Learn more

  • Open in-app banner. When this option is selected, clicking on the notification will open an in-app banner, allowing for further interaction with the content directly within the app. If you choose this option, select the Rich media to display from the provided dropdown list. Please note that you need to create this rich media content in advance. Learn more about creating Rich media

After configuring the Save to inbox feature and other notification settings, remember to click Apply to save the changes. You can then proceed with configuring the rest of your customer journey.

Example scenario: Using message inbox for a promotional campaign

Suppose you manage a retail app and want to engage loyal customers with a time-sensitive 20% discount on summer items. To make sure users don't miss out on promotions, even if they don't act right away, use the Save to inbox feature. This will save promotional messages in the app's inbox so users can review them later at their convenience.

Here’s how you can do it step by step:

  1. Start by creating a customer journey specifically for a segment of loyal customers who have previously shown interest in summer products or participated in past promotions. For this add the Audience-based entry element to the journey canvas and select the segment you need.

  2. Add a push notification element to the journey canvas and create the push notification content. For example:

    Title: 20% OFF All Summer Items – Limited Time Only!

    Message: Exclusive offer for our loyal customers! Shop now and save 20% on all summer styles. Offer ends in 4 days. Tap to grab your discount!

  1. In the Push element, enable the Save to inbox option. Since the promotion is valid for only 4 days, configure the Remove from inbox option to delete the message after 4 days.

  1. Add a custom icon URL to ensure the message is visually identifiable in the inbox and reinforces your brand.

  1. Under the Action when inbox clicked option, select Open in-app banner and choose the Rich media you created earlier to display. For example, in this rich media content, you can include the promo code that your users can apply during checkout.

After configuring the Save to inbox feature and other notification settings, click Apply to save the changes. Next, configure the rest of your customer journey. Learn more

How to track inbox message statistics

To view your inbox message statistics, click on the message you want to track on the journey canvas, then select Full statistics.

In the window that opens, choose the date range you want to review, filter the data by platform if necessary, and locate the Inbox opened section. This will show how many times the message saved to the inbox was opened by users.

The graph at the bottom visualizes how the message was opened, including the number of inbox opens.

Last updated