-
Notifications
You must be signed in to change notification settings - Fork 338
Notification robustness #5726
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
base: develop
Are you sure you want to change the base?
Notification robustness #5726
Conversation
…)` because it may scale the Bitmap on versions before API 27. Starting in API 27, the framework does this automatically.
Note that I did not manage to have the method `onRegistrationFailed` invoked. If the network is not available for instance, unregistering the previous pusher will fail first.
|
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #5726 +/- ##
===========================================
+ Coverage 79.65% 79.67% +0.02%
===========================================
Files 2433 2435 +2
Lines 65282 65380 +98
Branches 8329 8344 +15
===========================================
+ Hits 52000 52094 +94
- Misses 10302 10307 +5
+ Partials 2980 2979 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| currentSlidingSyncVersion == SlidingSyncVersion.Proxy | ||
| } | ||
|
|
||
| private suspend fun ensurePusherIsRegistered(pusherRegistrationState: MutableState<AsyncData<Unit>>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code moved to DefaultPushService so that can be reused by the notification settings screen
|



Content
Ensure pusher (and topic in case of usage of UnifiedPush) are unregistered if the user disables the notifications. This will ensure that no Push will be sent (and ignored) if the user disables the notifications.
If the user has configured UnifiedPush, let EX be robust against manual topic deletion by creating a new endpoint and registering it.
Motivation and context
Robust notifications
Screenshots / GIFs
Screen_recording_20251113_175739.mp4
Tests
From ntfy application
Tested devices
Checklist