evollu / evollu/react-native-fcm

[android] Cannot set custom notification icon

Open
#735 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
661
PR merge metrics
No merged PRs in 30d

Description

1. What version of RN and react-native-fcm are you running?
11.2.0
2. What device are you using? (e.g iOS9 emulator, Android 6 device)?
Android 8.0 (OnePlus 5)
3. Is your app running in foreground, background or not running?
background / not running

I am trying to change the notification icon. But so far I have not been able to do that. I have read tons of articles about this, but I have no idea what's wrong with my setup. Everything else works as expected.

`AndroidManifest.xml`
```xml

```

The colour is actually working and I see the notification icons tinted:

![message](https://user-images.githubusercontent.com/5399/34783629-5f40223c-f62c-11e7-9d30-44954250f338.jpg)
![statusbar](https://user-images.githubusercontent.com/5399/34783631-5f61969c-f62c-11e7-847b-c1c8a7727cf7.jpg)

But they do not have the expected shape. I tried several things.

* I tried to copy the icons from the firebase example project.
* I created custom icons and added them to mipmap and drawables

files

None of that worked so far. If anyone has an idea what might be wrong, I would be very happy for any hint / help. What's really weird is that android-shaped icon with the droid. I have no idea where that is coming from.

Icon sizes are according to those guides:
* https://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html
* http://iconhandbook.co.uk/reference/chart/android/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.