react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

No data return from setNotificationOpenedHandler() in React Native 0.64.1

Open mattop1709 opened this issue 5 years ago • 2 comments

I have integrated the feature as per instructed inside the documentations. The push notification can be received once it sent from the OneSignal console for both iOS and Android devices.

Recently, I have upgraded my React Native version from 0.63.2 to 0.64.1. From my testing using RN 0.63.2, it was working and provide the data during notification open after I placed setNotificationOpenedHandler() inside the app. However, it didn't behave the same after I have tested using RN 0.64.1. I have tried to retrieve the data during notification open when my app was on active, background and inactive state, however nothing was return from setNotificationOpenedHandler() .

Additional Info during the test:

  1. Using Android Simulator API 29
  2. React Native OneSignal version 4.2.0
  3. React Native version 0.64.1
  4. React version 17.0.1

Looking forward for your attention on this issue. Thanks 👍🏻👍🏻!

mattop1709 avatar Jul 15 '21 01:07 mattop1709

Howdy, Thanks for your patience.

I took a look at the release notes and from what I can tell this shouldn't have changed anything except for some Xcode build fixes and this change here.

Can you please upgrade to 0.65 and test again? We haven't gotten other reports of this.

Also, some logs would be very helpful. Please attach your logcat from Android Studio while reproducing the problem. Also make sure to set the log level to verbose.

rgomezp avatar Aug 18 '21 00:08 rgomezp

Closing due to inactivity

rgomezp avatar Sep 03 '21 22:09 rgomezp