stream-feed-flutter icon indicating copy to clipboard operation
stream-feed-flutter copied to clipboard

Notification Feed Subscription not being triggered by ActivityMarker().allSeen().allRead()

Open ObserverMoment opened this issue 4 years ago • 0 comments

Hi,

Is there a way to be able to be able to receive real-time updates when a user marks all their notifications as seen / read?

I am getting unseen counts to display an indicator via

final counts = await _notificationFeed.getUnreadUnseenCounts()

Then subscribing to the notification feed via

 _feedSubscription =
          await _notificationFeed.subscribe(_handleSubscriptionMessage);

When the user opens their notifications list I run this

final feedActivities = await _notificationFeed
          .getEnrichedActivities<User, dynamic, String, String>(
              limit: _postsPerPage,
              offset: offset,
              marker: ActivityMarker().allSeen().allRead());

However, the subscription is not triggered and so the indicator does not update correctly.

Can you advise how this should be achieved please?

Thanks,

Rich

ObserverMoment avatar Jan 28 '22 17:01 ObserverMoment