AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
284 stars 198 forks source link

On some iOS devices (example: iphone 12 pro max) when app is installed via deep link, the deep_link_value is undefined #398

Closed Ggayane closed 2 years ago

Ggayane commented 2 years ago

Report

On some iOS devices (example: iphone 12 pro max) when app is installed via link, deep deep_link_value inside onInstallConversionData is undefined.

Plugin Version

6.6.1

On what Platform are you having the issue?

iOS

These are the lines which I've added in my AppDelegate.m file:

- (BOOL)application:(UIApplication *)app
            openURL:(NSURL *)url
            options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
  [[AppsFlyerAttribution shared] handleOpenUrl:url options:options];
  [[RNFBDynamicLinksAppDelegateInterceptor sharedInstance] application:app openURL:url options:options];
  if ([[FBSDKApplicationDelegate sharedInstance] application:app openURL:url options:options]) {
    return YES;
  }

  if ([RCTLinkingManager application:app openURL:url options:options]) {
    return YES;
  }

  return NO;
}

// Universal Links
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
  [[AppsFlyerAttribution shared] continueUserActivity:userActivity restorationHandler:restorationHandler];
  [[RNFBDynamicLinksAppDelegateInterceptor sharedInstance] application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
  return [RCTLinkingManager application:application
                   continueUserActivity:userActivity
                     restorationHandler:restorationHandler];
}

Also I see this in logs: [AppsFlyerSDK] [com.appsflyer.serial] [DDL] Calling didResolveDeepLink with: {"af_sub4":null,"click_http_referrer":null,"af_sub1":null,"click_event":{"request_ip_version":"IP_V4","match_message":"No pre-install link matched for this device."},"af_sub3":null,"deep_link_value":null,"campaign":null,"match_type":null,"af_sub5":null,"media_source":null,"campaign_id":null,"af_sub2":null}

pjc0247 commented 2 years ago

same here

Ggayane commented 2 years ago

same here

@pjc0247 you need to write their tech support, they're not communicating here (don't understand why).

pjc0247 commented 2 years ago

@Ggayane Thanks. did you solve this via tech support? can you share the solution?