unreadCount() returns the signed-in customer’s unread Glean Feed count so you can show a native badge or a “What’s new” dot. Anonymous or stale identity returns 0.
Behavior
There’s no push, background polling, or app-icon badging in v1. Call
unreadCount() from your own
foreground refresh (for example, on scenePhase becoming active) when you want a fresh value.Confirm the count
Identify a test customer, create an unread reply, status change, comment, or published update for that customer, then callunreadCount() while the app is active. Confirm the native badge becomes nonzero. In the portal notification bell, open or mark a personal notification read; for a published update, open the bell so Glean Feed advances the changelog seen marker. Refresh unreadCount() and confirm the count changes.