react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Default location for the small notification icon is in drawables and not in mipmap

Open vikeri opened this issue 10 years ago • 5 comments

When looking for smallIcon the library looks for the mipmap type but by default Android Studio puts Notification icons in drawables for me. Changing mipmap straight to drawable in the code would be a breaking change so a suggestion would be to either expose the second parameter in res.getIdentifier() to the RN component or to check both places for icons.

vikeri avatar Aug 30 '16 12:08 vikeri

I'll provide a PR if you agree with this.

vikeri avatar Aug 30 '16 12:08 vikeri

+1 for this. As far as I know, all image assets except Launcher icons should be located in drawable.

jonesn3 avatar Jan 09 '17 08:01 jonesn3

Just spent 3 hours not knowing why my custom icon wasn't showing up. Thanks for raising the issue.

dccarmo avatar Dec 28 '17 17:12 dccarmo

I also ran into this issue. Could not figure out why the ic_launcher default was being used.

Shannanigans avatar Jan 22 '18 09:01 Shannanigans

ran into this issue .. is there any hacky way to fix this until the solution is merged to the release?

sa77 avatar Jan 30 '18 17:01 sa77