-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Improve push and pull notification reliability (#880)
Clean up the notification handling code and fix a lot of bugs, hopefully without introducing new ones in the process. Specific bugs discovered and fixed: - The code that tried to sync notification filtering state between the server and Pachli could fail, leaving things in an inconsistent state, resulting in dropped notifications. Remove that code, do filtering client-side. - Logging out of an account would disable push notifications for all accounts. - If any account did not support push notifications then push notifications were disabled for all accounts. - If any account did not support push notifications the user was prompted to log out of all accounts. Drop that entirely. - The UnifiedPush library could get to a state where configuring the notification mechanism would silently fail, The preferences UI now has a section for notifications, showing: - The Unified Push distributor in use (if any) - A mechanism to change the distributor - Per-account configuration and notification fetch details - Battery optimisation state General changes: - Update to UnifiedPush library 2.4.0. - NotificationFetcher.fetchAndShow() can now fetch a single account's notifications, or all accounts, depending on data passed to the worker. - Use ApiResult for `push/subscription` responses. - Drop the "needs migration" terminology for the more specific "has push scope", to make it clear what the issue with the account is.
- Loading branch information
1 parent
fcbcb40
commit 8b9fe6d
Showing
54 changed files
with
772 additions
and
580 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.