Merged
Conversation
Contributor
|
📱 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 #6181 +/- ##
===========================================
+ Coverage 81.39% 81.40% +0.01%
===========================================
Files 2570 2570
Lines 69761 69744 -17
Branches 8968 8964 -4
===========================================
- Hits 56780 56774 -6
+ Misses 9648 9642 -6
+ Partials 3333 3328 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Content
Change the message of the fallback notification from "You have new messages" to "You have X new messages", where X is a counter. The counter is incremented each time a new Push cannot be resolved to an event, and reset each time the user dismisses this notification.
Actually the counter is stored in the extras of the notification.
Motivation and context
Give more information about the potential new messages in the notification when the event cannot be decrypted.
Screenshots / GIFs
Tests
Let's exploit an issue that's not fixed on the SDK yet in order to test the feature. One can trigger the fallback notification by following these steps:
If you send multiple messages then redact them while the mobile device is in airplane mode, you can see that the counter is updated.
When the fallback notification is dismissed, you can check that the next displayed fallback notification will have a reset counter.
Tested devices
Checklist