segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
354 stars 181 forks source link

Firebase plugin doesn't work for expo managed workflow #879

Closed jesse-lore closed 8 months ago

jesse-lore commented 9 months ago

I am getting this error for custom event track calls and because of this I don't see custom events on GA dashboard.

An internal error occurred:  [Error: Error on Firebase Track]

Steps to reproduce

Expected behavior No error with tracking custom event and see custom event on GA dashboard.

Actual behavior I can see custom event on Segment dashboard but not on GA dashboard and see this error on console.

An internal error occurred:  [Error: Error on Firebase Track]

This is an urgent issue which want to handle for our production build so looking forward to getting some updates soon!

Thanks in advance.

oscb commented 9 months ago

@jesse-lore Given the error, something must be happening inside the Firebase library itself when the Segment SDK tries to send a track event.

Were you able to find any more info about this error?

Something I would check is that Firebase is properly configured with credentials: https://rnfirebase.io/#configure-firebase-with-ios-credentials

A good test to get more details on the error might be to just install firebase and try to send some events directly through it (without Segment's SDK). To see if you can get any more details on what the issue with Firebase is.

Let us know what you find.