Skip to content

[iOS] : withAppsFlyerAppDelegate: Swift AppDelegate file is not supported yet #638

@Nayan-Infynno

Description

@Nayan-Infynno

React Native Expo

Package Versions:

"expo": "^53.0.17",
"react-native": "0.79.5",
"react-native-appsflyer": "^6.17.1",

I'm upgrading to the latest version of Expo; in SDK 53, it's not working.
While pre-building the project, I got this kind of warning.

1. withAppsFlyerAppDelegate file is not supported with the swift AppDelegate file

Image

This warning shows while app prebuilding.

2. Also, appsFlyer.onDeepLink Method is not called

    appsFlyer.initSdk(
      {
        devKey: "YOUR_DEV_KEY",
        isDebug: true,
        appId: Platform.OS === "ios" ? "YOUR_APPID" : undefined,
        onDeepLinkListener: true,
      },
      (result) => {
        console.log("AppsFlyer init success:", result);
      },
      (error) => {
        console.error("AppsFlyer init failed:", error);
      }
    );

    // Deep link handler
    const deepLinkListener = async (res: UnifiedDeepLinkData) => {
      if (res.deepLinkStatus === "FOUND") {
        const { deep_link_value } = res?.data;
        console.log("AppsFlyer deep-link response --->", res);
        if (deep_link_value) {
          console.log(
            "MetaAd_AppInstalled event triggered via AppsFlyer ------->",
            deep_link_value
          );
          logAppEvent("MetaAd_AppInstalled", {
            Platform: Platform.OS,
            fbc: deep_link_value,
          });
          await AsyncStorage.setItem("facebookAdsId", deep_link_value);
        }
      }
    };

    appsFlyer.onDeepLink(deepLinkListener);
  }, []);

All are things that are working in Expo 51.0.38 and React Native 0.74.5. But React Native & Expo's latest version is not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions