Expo Icon in push notification in Android

My problem is related to Expo push notifications using expo branding.
I’m sure that I placed “expo.notification” property in app.json and build android many times but the problem is still there.
Also I tried to use “expo r -c” without any effects.
I could change the background color, but the icon is not. It’s still displaying Expo’s branding icon.
Please help me what to do?

Hey @virusvn, could you paste your app.json here?

Cheers,
Adam

{
  "expo": {
    "name": "n/a",
    "slug": "n/a",
    "privacy": "unlisted",
    "sdkVersion": "34.0.0",
    "platforms": ["ios", "android", "web"],
    "version": "3.0.3",
    "orientation": "portrait",
    "icon": "./assets/ios_icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#D41422"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "n/a",
      "buildNumber": "3"
    },
    "android": {
      "googleServicesFile": "./google-services.json",
      "package": "n/a",
      "icon": "./assets/android_icon.png",
      "adaptiveIcon": {
        "backgroundImage": "./assets/android_icon_round.png"
      },
      "versionCode": 30003
    },
    "notification": {
      "icon": "./assets/android_icon_round_grayscale.png",
      "color": "#D41422",
      "androidMode": "default",
      "androidCollapsedTitle": "n/a"
    },
    "description": "n/a"
  }
}

Please check it and help me.

file “./assets/android_icon_round_grayscale.png”

assets/android_icon_round_grayscale.png: PNG image data, 96 x 96, 8-bit gray+alpha, non-interlaced

Is the icon correct?

This claims to be a notification icon creator:

https://romannurik.github.io/AndroidAssetStudio/icons-notification.html

Maybe it will help.

This reference seems to say that 96x96 PNG is OK, but that it should be white.

See this too:

1 Like

@wodin thank for your help.
But unlucky, It’s not work, with the image in clipart.
I’m still finding another solution, please help.

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