notificationIcon is gray

  1. SDK Version: 38
  2. Platforms: Android/iOS

hi please help me

I want to add my own notification icon
when I used sdk36 everything was good

now it looks like
Screenshot at Aug 31 16-02-00

app.json

{
  "expo": {
   .................
  },
  "locales": {
   ...........
  },
  "notification": {
    "androidMode": "default",
    "icon": "./assets/notificationIcon.png",
    "iosDisplayInForeground": true
  }
}

I tried key “notification”: {} inside “expo”: { … }
the same problem

Hi,

I had the same problem, as it’s specified in the app.json docs (Expo docs notification settings) you need:

96x96 png grayscale with transparency

Just fix your png to really fit this condition and it will work (It worked for me with a transparent png with my logo (only the border in black) and background transparent too).

You can also try to reformat your png with online tool ? (like this one)

Thanks for chiming in here, @ncailleux! That should do the trick @alexhodovas but if not, please let me know.

It is not working @adamjnav

I tried to use online png tool

this is my icon
notificationIcon4

and also I saw that a lot of people have the same problem
LINK —>

Please tell me how to fix it
Is it a bug in sdk38?

@adamjnav
please help
It is really important for my project

@adamjnav please help

@adamjnav
do you have any idea ? please

@adamjnav

I have the same problem. But my app is a bare workflow project. Didn’t found any way to set the notification icon, I’ve already tried manifest config, app.json config, placing icons in different folders (drawable and mipmap folders) and it just doesn’t works.

this explains how to set the icon: expo/README.md at master · expo/expo · GitHub

Thanks man. I didn’t saw that readme at all, I’ll try it :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.