Google Analytics for Firebase not working in react-native-onesignal
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?
- [X] iOS
- [X] Android
Relevant log output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
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
@sandeep14 Thanks for reporting, could you provide a few more details?
- What is the exact firebase packages and version you are using?
- What version of the react-native-onesignal package are you using?
- I see you listed 5.5.0 but this isn't one of our versions.
- Expanding on "in Android, In debug mode I can see the event but in release mode it is not capuring"
- By this doe you mean when you build a release version of your app? Or the debug mode of Firebase?
- If debug vs release of your app, are you using any minification settings in Android? Such as proguard?
- Does disabling this get it working?
- If you have custom configuration here can you share it?
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
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.