Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Improve background notification checks#1990

Merged
hjiangsu merged 1 commit intodevelopfrom
feat/improve-background-checks
Dec 8, 2025
Merged

Improve background notification checks#1990
hjiangsu merged 1 commit intodevelopfrom
feat/improve-background-checks

Conversation

@hjiangsu
Copy link
Member

@hjiangsu hjiangsu commented Dec 8, 2025

Pull Request Description

This PR improves the logic for handling background local notification checks. Each time a background check runs, it now triggers a silent notification that is automatically dismissed once the check completes. This allows us to cross-verify that background checks are being triggered properly.

Additionally, this PR adds support for user mentions and private message notifications. I realized we only had checks in place for comment replies, so I added the missing logic for these notification types as well!

Issue Being Fixed

Issue Number: N/A

Screenshots / Recordings

Checklist

  • If a new package was added, did you ensure it uses an appropriate license and is actively maintained?
  • Did you use localized strings (and added appropriate descriptions) where applicable?
  • Did you add semanticLabels where applicable for accessibility?

@hjiangsu hjiangsu merged commit 9df8d64 into develop Dec 8, 2025
1 check passed
@hjiangsu hjiangsu deleted the feat/improve-background-checks branch December 8, 2025 16:47
Copy link
Member

@micahmo micahmo left a comment

Choose a reason for hiding this comment

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

I realized we only had checks in place for comment replies, so I added the missing logic for these notification types as well!

Just checking, does tapping these notifications navigate to the right place in the app? I think that's why we hadn't added the other types before.

const String _messagesChannelId = 'inbox_messages';
const String _messagesChannelName = 'Inbox Messages';
const String _repliesChannelId = 'replies';
const String _repliesChannelName = 'Replies';
Copy link
Member

Choose a reason for hiding this comment

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

The only problem with changing these channel names now is that it will create duplicate channels for existing users. On Android, at least, these is what the user sees when they go into system notification settings (and they can turn of/off each channel individually).

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh okay, I'll revert the changes here - thanks for the heads up!

@hjiangsu
Copy link
Member Author

hjiangsu commented Dec 8, 2025

Just checking, does tapping these notifications navigate to the right place in the app?

Let me check! I'll likely do a follow up PR to add these if they're missing

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.

2 participants