AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
285 stars 202 forks source link

onAppOpenAttribution Data Not Returning in React Native AppsFlyer SDK #580

Open huseyintamer opened 1 month ago

huseyintamer commented 1 month ago

I’m experiencing an issue where the onAppOpenAttribution callback does not return data on both iOS and Android. However, I am able to access the networkUserId. Below is the code I’m using:

appsFlyer.getAppsFlyerUID((error,` networkUserId) => {
  console.log('errorr', error);
  console.log('networkUserId', networkUserId);

  appsFlyer.onAppOpenAttribution(data => {
    console.log('onAppOpenAttribution inside', data);
    try {
      // It's important to include the network user ID
      adapty.updateAttribution(
        data,
        AttributionSource.AppsFlyer,
        networkUserId,
      );
    } catch (error) {
      console.log('updateAttribution error', error);
    }
  });
`});

The onAppOpenAttribution callback gets triggered but no data is being returned inside it. This issue is happening on both iOS and Android devices.

•   React Native: 0.72.4
•   react-native-appsflyer: ^6.15.1
github-actions[bot] commented 1 month ago

👋 Hi @huseyintamer and Thank you for reaching out to us. You can contact AppsFlyer support through the Customer Assistant Chatbot for assistance with troubleshooting issues or product guidance. To do so, please follow this article.