Repository navigation
[flutter_local_notifications] add conversationId/parentChannelId to AndroidNotificationChannel - #2883
Draft
vishnuprasad0 wants to merge 1 commit into
Draft
vishnuprasad0 wants to merge 1 commit into
vishnuprasad0 wants to merge 1 commit into
Conversation
…ndroidNotificationChannel
vishnuprasad0
marked this pull request as draft
November 18, 2026 13:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
conversationIdandparentChannelIdtoAndroidNotificationChannel.On Android 11 (API 30) and newer, setting both marks the channel as a conversation channel via
NotificationChannel.setConversationId(parentChannelId, conversationId), so its notifications showup in the conversation space and can appear as bubbles. Both are optional and default to null, so
nothing changes for existing channels.
This supersedes #2797 — the original implementation is @PolynomialDivision's, and this version just
addresses your review there. The SDK_INT check is now an outer guard so the null/empty checks don't
run on older API levels, and the redundant comments are gone.
On your question about the Gradle bump: it isn't needed here. The original went through AndroidX's
NotificationChannelCompat, which is why it bumpedandroidx.core. Callingandroid.app.NotificationChannel.setConversationId(...)directly is supported by the platform SDKfrom API 30 and this repo already compiles above that, so
android/build.gradleis untouched.For tests I extended the existing
AndroidNotificationChannelmethod-channel serialization tests —both values present, both null by default, and a round trip with both set.
One gap:
AndroidNotificationChannelhas nofromMapconstructor, so reading conversation IDs backfrom
getNotificationChannels()isn't covered. That wasn't in #2797 either, but say the word andI'll add it.