AppsFlyerSDK / appsflyer-react-native-plugin

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

Universal link does not open the app installed on IOS device #439

Closed QuangBinhDinh closed 1 year ago

QuangBinhDinh commented 1 year ago

Report

Plugin Version

Version 6.9.2

On what Platform are you having the issue?

iPhone 14 Pro Max simulator (IOS 16.0) and iPhone 8 real device(IOS 14.7.1)

What did you do?

I already created a template using Universal Links for my IOS app. I also created a smart banner using that template. Then I generated a new url for testing creative banner and open it on Safari but the app did not open (even I have my app debugging on simulator) . Instead safari navigated to app store URL . This also happened when I paste onelink.me URL to address bar and go

What did you expect to happen?

App opens when press Open App in smart banner

What happened instead?

Safari navigate to my appStore URL

Below is my configuration file for AppFlyer setup : AppDelegate.m


- (BOOL)application:(UIApplication *)application
   openURL:(NSURL *)url
   options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
  [[AppsFlyerAttribution shared] handleOpenUrl:url options:options];

  //config facebook + google sign in
  if ([[FBSDKApplicationDelegate sharedInstance] application:application openURL:url options:options] || [RNGoogleSignin application:application openURL:url options:options]) {
    return YES;
  }

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

  return NO;
}

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

Entitlement file ( I created 2 templates but none worked )

    <key>com.apple.developer.associated-domains</key>
    <array>
        <string>printerval.onelink.me</string>
        <string>printervalapp.onelink.me</string>
    </array>

Info.pilst ( I setup URI scheme for fallback but still not work, but scheme works fine when enter on Safari )

<key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleURLName</key>
            <string>com.appsflyer.printerval</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>printervalapp</string>
            </array>
        </dict>

React Native version : 0.66.4 My AppFlyer account : dragonlava99@gmail.com

I hope someone will support

github-actions[bot] commented 1 year ago

šŸ‘‹ Hi @QuangBinhDinh and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

github-actions[bot] commented 1 year ago

This issue is closed due to inactivity. If the issue continue, please open a new one.