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

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

Open
3 tasks done
sandeep14 opened this issue Feb 3, 2023 · 4 comments
Open
3 tasks done

Comments

@sandeep14
Copy link

sandeep14 commented Feb 3, 2023

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?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sandeep14 sandeep14 changed the title Google Analytics for Firebase not working Google Analytics for Firebase not working in react-native-onesignal Feb 3, 2023
@sandeep14
Copy link
Author

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
Copy link
Member

@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?

@sandeep14
Copy link
Author

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
Copy link

JobayerHOS commented Sep 20, 2023

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.

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

3 participants