After upgrading to android sdk to v26 the notification icons became white boxes, we have solved this issue by using white/transparent icons.
However, on Samsung phones the small icons in push notifications are green android robots. In all other phones where push notifications are using large icons (white/transparent) it works perfectly.
How can we fix the Samsung issue?
I am using:
- React native: 0.56 (0.55.4 too)
- React native firebase: 3.3.1
- Android Target SDK: 26
I have:
- ic_launcher.png which is a multi-color logo for the app.
- ic_notification.png which is white/transparent logo for the >Lolipop push notifications.
Corresponding lines in android.manifest:
<application
android:name=".MainApplication"
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme">
<meta-data
android:name =
"com.google.firebase.messaging.default_notification_icon"
android:resource="@mipmap/ic_notification"
/>
<meta-data
android:name =
"com.google.firebase.messaging.default_notification_color"
android:resource="@color/orange"
/>