getUnseenInAppNotificationCount method
Get the number of unread in-app notifications for a subscriber
subscriberId
- The external subscriber identifier
Implementation
Future<int> getUnseenInAppNotificationCount(String subscriberId) async {
Map<String, dynamic> response = (await request(method: ApiMethod.GET, endpoint: 'subscribers/$subscriberId/notifications/unseen'))['data'];
return response['count']?.toInt() ?? 0;
}