Skip to content

Couldn't Replace Default Bell Notification Icon In Android Using Expo #1753

Open
@aodstraitpay

Description

@aodstraitpay

I'm working on changing the default bell notification using this doc

Environment

"react-native": "^0.74.2",
"expo": "^51.0.11",
"react-native-onesignal": "^5.2.2",
"onesignal-expo-plugin": "^2.0.3",

app.json

{
  "plugins": [
    [
      "onesignal-expo-plugin",
      {
        "mode": "development",
         "smallIcons": [
            "./assets/notification/small_notification_icon_hdpi.png",
            "./assets/notification/small_notification_icon_mdpi.png",
            "./assets/notification/small_notification_icon_xhdpi.png",
            "./assets/notification/small_notification_icon_xxhdpi.png",
            "./assets/notification/small_notification_icon_xxxhdpi.png"
          ],
          "largeIcons": [
            "./assets/notification/large_notification_icon_hdpi.png",
            "./assets/notification/large_notification_icon_mdpi.png",
            "./assets/notification/large_notification_icon_xhdpi.png",
            "./assets/notification/large_notification_icon_xxhdpi.png",
            "./assets/notification/large_notification_icon_xxxhdpi.png"
          ]
      }
    ]
  ]
}

Steps to Reproduce Issue

  1. Create an Expo project following expo docs
  2. Generate icon from Android Asset studio
  3. Setup Push notification following OneSignal guide
  4. Build the app using the command below:
npx expo prebuild       
npx expo run:android   
  1. Send a test notification from OneSignal Dashboard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions