我们能为您提供什么帮助?

与AppsFlyer对接。

  • 更新

概要: 

iterable-af-logo.png

简介

前期准备

iOS Android

第1步:

 

第2步:

第2步:

  1. 有关更多信息,请参见这里 。

第1步:

<activity android:name=".DeepLinkActivity">
    <intent-filter  android:autoVerify="true">
        <action android:name="android.intent.action.VIEW" />
           <category android:name="android.intent.category.DEFAULT" />
           <category android:name="android.intent.category.BROWSABLE" />
           <data android:scheme="https"
               android:host="click.example.com"
               android:pathPrefix="/campaign" />
     </intent-filter>
</activity>

第2步: 


  1.  
    AppsFlyerLib.getInstance().setResolveDeepLinkURLs("click.example.com");

第1步:

  1. 在 XCode 中选择您的项目


  1.  
    AppsFlyerLib.getInstance().setResolveDeepLinkURLs("clickdomain.com", "myclickdomain.com", "anotherclickdomain.com");
    


  1.  
    Objective-C Swift
    [AppsFlyerLib shared].resolveDeepLinkURLs = @[@"example.com",@"click.example.com"];

  2.  
    Objective-C Swift

    - (NSDictionary *)allHTTPHeaderFieldsForResolveDeepLinkURL:(NSURL *)URL {
        if ([URL.host  isEqual: @"click.example.com"]) {
            return [NSDictionary dictionary];
        }
        else {
            return nil;
        }
    }

  1. 举例来说,

    <a href="greatapp.onelink.me/abcd/1234567">Download my great app!</a>

 示例

https://greatapp.onelink.me/abcd?pid=Email&c=Spring_Newsletter&is_retargeting=true&
af_dp=testapp://path/to/content&af_web_dp=https://www.example.com/path/to/content&
af_ios_url=https://www.example.com/path/to/content&af_android_url=https://www.example.com/path/to/content