onesignal-expo-plugin icon indicating copy to clipboard operation
onesignal-expo-plugin copied to clipboard

[Bug]: click listener not working

Open RayanMoarkech opened this issue 9 months ago • 2 comments

What happened?

My current setup is expo with expo-notifications (for local) and react-native-onesignal (for marketing and automations).

    [
        "onesignal-expo-plugin",
        {
          "mode": "development",
          "smallIcons": ["./assets/icons/android_notification_icon_dev.png"],
          "smallIconAccentColor": "#ffffff"
        }
      ]

After sending a local expo notification, I am trying to listen to expo notifications clicks, but nothing works.

addNotificationResponseReceivedListener

Is there any specific setup or conflicts to resolve to make it work?

Steps to reproduce?

1. Install expo-notifications
2. Install react-native-onesignal
3. Add listeners for both
4. Test

What did you expect to happen?

The callback should be triggered.

OneSignal Expo SDK version

2.0.3

Platform

iOS only issue Android working well

Relevant log output

No logs. Nothing happening.

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

RayanMoarkech avatar Apr 14 '25 01:04 RayanMoarkech