Closed Thebarda closed 5 years ago
I'm seeing similar problems with the default notification icon following the steps described here: https://rnfirebase.io/docs/v5.x.x/notifications/android
My manifest contains:
<application ...>
<meta-data
android:name="com.google.firebase.messaging.default_notification_channel_id"
android:value="notifications"/>
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/colorAccent" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/my_notification_icon" />
Attempting to send a notification via displayNotification
requires that I put .android.setChannelId(
even though I believe the default should kick in when it's not there.
The icon is not being set either per the defaults. Notifications from Firebase itself are not appearing because currently they do not have a channelId set, which leads me to believe the default channelId is also not working.
I am also encountered this issue while running on Android API 27 or lower. I have tried setting the default_notification_icon in the manifest and an icon within firebase.notifications.Android.Action. Note that the icon correctly displays on Android 28. Any help would be greatly appreciated.
Note I'm using this following version of firebase
"com.google.firebase:firebase-core:16.0.7" "com.google.firebase:firebase-messaging:17.3.4"
Hello š, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?
This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.
Hello , to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?
This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.
This issue has not been fixed yet
This has nothing to do with the library, it's the way icons work in Android in newer APIs
https://stackoverflow.com/questions/40404916/android-notification-icon-is-a-white-circle
Issue
I'm experiencing an issue about action notification. Indeed, I want to display an icon ('ic_launcher'), that exist in mipmaps, in action button but it display a grey icon on android API 23 and no icon on android API 28. Here is a screen fron android API 23 :
Project Files
Here is my code that create action :
iOS
ios/Podfile
:AppDelegate.m
:Android
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Android API 23
N/A
N/A
Ubuntu 18.04
Gradle 4.10
React Native
version:0.57
React Native Firebase
library version:5.5.2
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A