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 182 forks source link

AppsFlyer plugin not working #848

Closed JCaraballo113 closed 10 months ago

JCaraballo113 commented 1 year ago

So when I install the appsflyer plugin and do the config I am not seeing the appsFlyerId in my events at all and as such events fail delivery. Also seeing this error:

TypeError: undefined is not a function
    at extractCurrency

I am using expo but I believe I have done everything I need including adding the apps flyer sdk in the plugins like so:

plugins: [
      ['react-native-appsflyer', {}],

    ]

Steps to reproduce

Install apps flyer plugin.

Expected behavior It works and events get to appsFlyer with appsFlyerId Actual behavior Not working. There is no appsFlyerId and getting an unhandled promise rejection warning.