Skip to content

feat: implement Android conversation notifications#3215

Draft
PolynomialDivision wants to merge 1 commit into
krille-chan:mainfrom
PolynomialDivision:android-converstaions
Draft

feat: implement Android conversation notifications#3215
PolynomialDivision wants to merge 1 commit into
krille-chan:mainfrom
PolynomialDivision:android-converstaions

Conversation

@PolynomialDivision

@PolynomialDivision PolynomialDivision commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Add SHORTCUT_CATEGORY_CONVERSATION to room shortcuts and link per-room notification channels with setConversationId so MessagingStyle notifications appear in Android's Conversations section. Clean up shortcuts and channels on logout.

Pull Request has been tested on:

  • Android
  • iOS
  • Browser (Chromium based)
  • Browser (Firefox based)
  • Browser (WebKit based)
  • Desktop Linux
  • Desktop Windows
  • Desktop macOS
image

Fixes: #868

Add SHORTCUT_CATEGORY_CONVERSATION to room shortcuts and link per-room
notification channels with setConversationId so MessagingStyle notifications
appear in Android's Conversations section. Clean up shortcuts and channels
on logout.
* The shortcut intent format is kept compatible with flutter_shortcuts_new so
* that FlutterShortcuts().listenAction() in chat_list.dart continues to work.
*/
class ConversationNotifications(private val context: Context) : MethodChannel.MethodCallHandler {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not going to maintain Kotlin code. Cant we use a flutter plugin?

@krille-chan

Copy link
Copy Markdown
Owner

@PolynomialDivision have you used LLM to create this pr?

if (PlatformInfos.isAndroid && messagingStyleInformation == null) {
await _setShortcut(event, l10n, title, roomAvatarFile);
if (PlatformInfos.isAndroid) {
await AndroidConversationNotifications.publishShortcut(

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So looks like this is something which should instead be fixed in the flutter local notifications package and shortcut package

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.

Use Android “conversation” notification type

2 participants