Skip to content

Add methods to get unread/read in-app message counts#843

Closed
franco-zalamena-iterable wants to merge 1 commit intoIterable:masterfrom
franco-zalamena-iterable:feat/495-unread-message-count
Closed

Add methods to get unread/read in-app message counts#843
franco-zalamena-iterable wants to merge 1 commit intoIterable:masterfrom
franco-zalamena-iterable:feat/495-unread-message-count

Conversation

@franco-zalamena-iterable
Copy link
Copy Markdown

@franco-zalamena-iterable franco-zalamena-iterable commented Apr 7, 2026

Summary

  • Add getUnreadInboxMessagesCount() method that bridges to the existing native SDK method
  • Add getReadInboxMessagesCount() method (computed as total inbox messages minus unread count)
  • Expose both methods on IterableInAppManager and IterableApi
  • Enables showing badge counts for inbox

Test plan

  • Unit tests for unread count with mixed read/unread messages
  • Unit tests for read count with mixed read/unread messages
  • Test with empty inbox returns 0
  • Test with all-read inbox returns 0 unread
  • Test with all-unread inbox returns 0 read
  • Verify unread count matches actual unread messages on device
  • Verify read count matches actual read messages on device

🤖 Generated with Claude Code

…ethods

Expose the native SDK's existing getUnreadInboxMessagesCount via the
TypeScript API, and add a computed getReadInboxMessagesCount method
to enable badge count use cases for in-app inbox messages.

Fixes Iterable#495

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@franco-zalamena-iterable franco-zalamena-iterable deleted the feat/495-unread-message-count branch April 8, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant