Just as an FYI for anyone looking for a fix for this issue.
I've updated to RN 0.76 and my events were not being sent on Android.
I was using the @segment/analytics-react-native-plugin-advertising-id plugin, version 1.3.5.
Updating to remove the plugin, fixed it. SO it's bound to be a problem on this package @segment/analytics-react-native-plugin-advertising-id plugin
analytics-react-native version: 2.21.2
- Integrations versions (if used):
"@segment/analytics-react-native": "^2.21.2",
"@segment/analytics-react-native-plugin-advertising-id": "^1.3.5",
"@segment/analytics-react-native-plugin-amplitude-session": "^0.4.1",
"@segment/analytics-react-native-plugin-appsflyer": "0.8.0",
"@segment/analytics-react-native-plugin-firebase": "^0.4.3",
"@segment/analytics-react-native-plugin-idfa": "^0.7.2",
"@segment/sovran-react-native": "^1.1.3",
- React Native version: "react-native": "0.76.9",
- iOS or Android or both? Android
Steps to reproduce
Add segmentClient.add({ plugin: new AdvertisingIdPlugin() }); in your code.
Expected behavior
Receive events on segment.
Actual behavior
I didn't receive event anymore on segment with Android.