-
Notifications
You must be signed in to change notification settings - Fork 387
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
ic_launcher icon not working for android push notifications #537
Comments
Hello, I was facing the same issue, and now that it's resolved I don't think this plugin is responsible. Here's the workaround I've found. My push notification provider is Batch, and use FirebaseCloudMessaging internally, so I first add a section in the
From : https://firebase.google.com/docs/cloud-messaging/android/client#manifest Unfortunately, the icon was visible but icon background color was always black. Notice: the icon for notification is used as a mask. That implies it must have a transparent background and all colored part will have same color when shown in notification context. Hope my xp can lead you to a fix 😃 🤞 |
@emri99 thanks.
keep in mind: |
I added
flutter_launcher_icons: ^0.13.1
to my flutter project:all icons are working except the push notifications. the icon in the push notifications looking like this:
i thinks its because of the missing ic_launcher icon in the folder because in my manifest I have:
android:icon="@mipmap/ic_launcher"
How is the right way to implement the push notifications icon with this plugin?
The text was updated successfully, but these errors were encountered: