-
Notifications
You must be signed in to change notification settings - Fork 249
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
Feature Request - Custom Push Notifications (Android) #4173
Comments
Hello @jamilsaadeh97. Thank you for opening this and the detailed description. I want to try and address the second point to see if it helps while rest are considered for future work.
Please let me know if either or none work and I will take another look, thank you. |
Hi @Samaritan1011001 , thank you for your answer! My app is using this specific naming Still I think this needs to be configurable, along with, and maybe most importantly, the text length of the notification. I'm very very limited on the notifications (and the app rely heavily on notifications) since they will be truncated on Android devices. Thank you! |
Apologies for the delay in response. We are tracking this as a feature request and will post here when we have further updates. |
Hello @Jordan-Nelson I created a PR in the Amplify Android repo fixing the push notification text length and it got merged a while ago. Thank you! |
Hello @Jordan-Nelson , kind reminder on this if it can be included in the next planned release |
Or if its possible for me to manually bump the amplify android version |
@jamilsaadeh97 I think you can pull in a dependency on the Android package and the higher version should be pulled in. I will look to open a PR to bump the version in Amplify Flutter though. |
@Jordan-Nelson I opened a PR, please let me know if anything is needed |
Thanks for the PR! It will be included in the next release. |
Amazing! Thanks a lot @Jordan-Nelson |
Amplify Flutter v2.4.1 was just released an it includes the android version bump |
This is a feature request to make the push notifications that are received on Android more customized and actually aligned with iOS.
Currently, there's a lot of limitations on the notifications that can be sent to Android:
If text is more than ~100 characters, it gets truncated. On iOS it does not.
fix(notifications): Prevent notifications text from being truncated amplify-android#2856
The notification icon can't be changed and I'm stuck with a white square instead of my app logo. On iOS it's perfect.
Impossible to send high importance notifications or "heads-up"(official Android term) notifications.
I did some digging into the Android imported packages of Amplify Push Notifications in Android Studio and I found this from
package com.amplifyframework.pushnotifications.pinpoint
(filename isPushNotificationsUtils.kt
):Specifically the
builder.apply
part, it shows that the smallIcon is predefined so we should follow it. The large texts are not handled like this, therefore, it gets truncated and the priority is set asNotificationCompat.PRIORITY_DEFAULT
so we can't have higher importance notifications.I don't know if I can manually override these properties.
Please let me know if I need to raise this request in another repo. Also I'm happy to contribute into this by raising a PR so please give me some guidance on where should this be done.
Thank you!
The text was updated successfully, but these errors were encountered: