Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aodstraitpay opened this issue Oct 15, 2024 · 0 comments
Open

Comments

@aodstraitpay
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant