Fetch Unread Notification Count
Unread Notification count helps you to show the unread notification which you can use to nudge the user to check the notification feed. You can achieve the same with LikeMinds SDK, by following the steps given below.
Steps to fetch unread notification count
- Use the
getUnreadNotificationCount()
function provided by thelmFeedClient
object created earlier.
try {
const response = await lmFeedClient.getUnreadNotificationCount();
// Use the response as per your requirement.
} catch (error) {
// Use the error as per your requirement.
}
Models
GetUnreadNotificationCountResponse
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
count | int | Count of unread notifications. |