Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only send notification if app is not in focus #1967

Conversation

HenrikJannsen
Copy link
Contributor

Based on #1963

@axpoems What do you think to add a check for "app is focussed" to decide to send a notification?
If user is using the app the OS notification is not needed IMO.

axpoems and others added 3 commits March 29, 2024 20:48
While online, for each message we (1) show the badge and (2) send
a system notification. The latter should be avoided when a message was
received before the user went offline. This prevents a flood of system
notifications at start-up.

Resolves bisq-network#1546
Copy link
Contributor

@axpoems axpoems left a comment

Choose a reason for hiding this comment

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

ACK

I think we should also dismiss the badge in the tab automatically after 5 seconds (or another solution so that the user sees that there's a change but it's handled automatically). This can be done when we work on the next chat iteration.

@djing-chan djing-chan merged commit 0a80d1a into bisq-network:main Apr 1, 2024
16 checks passed
@HenrikJannsen HenrikJannsen deleted the only-send-notification-if-app-is-not-in-focus branch April 2, 2024 09:36
@djing-chan djing-chan added this to the 2.0.3 milestone Apr 11, 2024
@djing-chan djing-chan added the ui label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants