Skip to content

feat(android): Add support for multiple notification channels#157

Open
UAndreiRamescu wants to merge 1 commit into
mirzemehdi:mainfrom
UAndreiRamescu:feat/android_notification_channels
Open

feat(android): Add support for multiple notification channels#157
UAndreiRamescu wants to merge 1 commit into
mirzemehdi:mainfrom
UAndreiRamescu:feat/android_notification_channels

Conversation

@UAndreiRamescu

Copy link
Copy Markdown

This commit introduces the ability to configure and use multiple notification channels on Android.

  • Replaced notificationChannelData with notificationChannelDataList in NotificationPlatformConfiguration.Android.
  • The NotificationChannelFactory is updated to create all channels provided in the list.
  • Notifications can now specify a channelId in their payload data to select which channel to be sent to. If not specified, the first channel in the configuration list is used as the default.
  • Updated the Android sample app to reflect the new multiple channel configuration API.
  • Replaced Uri.parse() with the androidx.core.net.toUri() extension function for consistency.

This commit introduces the ability to configure and use multiple notification channels on Android.

- Replaced `notificationChannelData` with `notificationChannelDataList` in `NotificationPlatformConfiguration.Android`.
- The `NotificationChannelFactory` is updated to create all channels provided in the list.
- Notifications can now specify a `channelId` in their payload data to select which channel to be sent to. If not specified, the first channel in the configuration list is used as the default.
- Updated the Android sample app to reflect the new multiple channel configuration API.
- Replaced `Uri.parse()` with the `androidx.core.net.toUri()` extension function for consistency.
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