Skip to content

Release 2.3.0

Latest

Choose a tag to compare

@serhiiporaiko-yalantis serhiiporaiko-yalantis released this 04 Aug 10:32
a2649fa

What's Changed

🚀 Features

  • Android: automatic summary notification for grouped pushes. setNotificationGroupingRule() now accepts an optional showSummary flag. When true, the SDK creates and maintains the collapsed "N new notifications" row natively — no more manual NotificationCompat code in MainApplication.kt.

    import { setNotificationGroupingRule } from "reteno-react-native-sdk";
    
    await setNotificationGroupingRule({ groupId: "messages", showSummary: true });
      	Creates a dedicated reteno_group_summary notification channel (Android 8.0+)
      	Posts/updates the summary once at least two notifications share a group
      	Removes the summary once fewer than two grouped notifications remain
      	Clears automatically when the grouping rule changes (different payloadKey/groupId)
      	Requires Android 6.0 (API 23)+  silently ignored on older devices, grouping still applies
      	Non-boolean showSummary values now reject the returned promise

This is fully backward compatible — showSummary is optional and defaults to no summary, matching pre-2.3.0 behavior.
🐛 Fixes
• Apps that register a custom NotificationClicked broadcast receiver (overriding Reteno's default) now still get internal click/close events forwarded correctly, so features built on top of them (like the new summary manager) keep working.