fix(notifications): Prevent notifications text from being truncated #2856
+1
−0
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.
Issue #, if available:
Fixes #2857
Fixes part of #4173 in the amplify flutter repo.
Description of changes:
Push notifications content are being truncated when they exceed ~90 characters and can't be shown to the user even if they expand the notification.
I've attached a screenshot on how the notification is currently shown after being expanded when using:
"This is a long push notifications message that's supposed to be completely shown on the user device" as notification body.
Per the official android documentation, I added
Notification.BigTextStyle
to the builder.How did you test these changes?
I did not test this because my app is using amplify flutter, so I don't know how to reference this change since amplify-android is a transitive dependency in amplify flutter. Any suggestion would be much appreciated.
Documentation update required?
General Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.