OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.56k stars 371 forks source link

Google Analytics for Firebase not working in react-native-onesignal #1483

Open sandeep14 opened 1 year ago

sandeep14 commented 1 year ago

What happened?

I have successfully integrated firebase and onesignal in app. I also sucessfully enabled firebase analytics integration in onesignal pannel. But I can't see os_notification_received event in firebase dashboard I have see my other custom added event in firebase dashboard . Also I receiving notification from onesignal . In short

after successful integration of firebase and onesignal. not getting see os_notification_received or other event in both android and ios

Steps to reproduce?

1. Just interegrate latest version of firebase and onesignal in app 
2.  sucessfully enabled firebase analytics integration in onesignal pannel
3. and then check firebase analytics dashboard
4. Here can't appear event

What did you expect to happen?

after successul integration of firebase and onesignal. Firebase analytics dashboard show me os_notification_opened, os_notification_received event data

React Native OneSignal SDK version

5.5.0

Which platform(s) are affected?

Relevant log output

No response

Code of Conduct

sandeep14 commented 1 year ago

in Android, In debug mode I can see the event but in release mode it is not capuring Please let us know what will be problem

jkasten2 commented 1 year ago

@sandeep14 Thanks for reporting, could you provide a few more details?

sandeep14 commented 1 year ago

typo mistake, I am using version 4.5.0 , https://github.com/OneSignal/react-native-onesignal

My firebase package version is 16.5.0.

When We build release mode of app then os_notification_received notification event not capturing Not used any seperate setting during debug vs release of app

JobayerHOS commented 10 months ago

in Android, In debug mode I can see the event but in release mode it is not capuring Please let us know what will be problem

Facing the same issue. Even other logEvent inside the notification received event listener works fine, but oneSignal events are not logging. Works in development build only.