Managing Notifications

Detailed in this page is how you can manage in-app notifications for new in-app chat messages for your React Native apps.

Push Notifications

In order to enable Push Notifications on React Native, please make sure to follow the steps for each platform's individual steps.

In order to enable push notifications on iOS, you will need to follow the steps here.

In-App Notifications

By default, a notification will be shown on top of your app's UI when a new message is received.

Disabling In-App Notifications

Use the following method to disable notifications that appear in-app.

React Native
Replies.setInAppNotificationsEnabled(false);

In-App Notification Sound

When your app users receive an in-app notification through Luciq, sound is enabled by default. You can disable it by using the following method.

JavaScript
Replies.setInAppNotificationSound(false);

Get Unread Messages Count

You can use the following method to get the number of messages the user has yet to read.

JavaScript
const unreadRepliesCount = await Replies.getUnreadRepliesCount();

Last updated