ディープリンク

ディープリンク

alt text

Deep Linking Types

Since users may or may not have the mobile app installed, there are 2 types of deep linking:

  1. Deferred Deep Linking - Serving personalized content to new or former users, directly after the installation.
  2. Direct Deep Linking - Directly serving personalized content to existing users, which already have the mobile app installed.

For more info please check out the OneLink™ Deep Linking Guide.

The set up for deferred deep linking and direct deeplinking is the same for UE4:

  1. Create a new Actor object.

  2. Click Add Component and and the AppsFlyer SDKCallback Component.

  3. You can now add the required callbacks.

Now you are ready to implement Deeplinking!

Deferred Deep Linking

Check out the deferred deeplinkg guide from the AppFlyer knowledge base here

Code Sample to handle the conversion data:

Direct Deeplinking

When a deeplink is clicked on the device the AppsFlyer SDK will return the link in the onAppOpenAttribution method.

Androidディープリンク設定

URI Scheme

In your app’s manifest add the following intent-filter to your relevant activity:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="your unique scheme" />
</intent-filter>

App Links

App Linksの詳細については、 こちらのガイドをご覧ください。

iOSディープリンク設定

Universal Linksの詳細については、 こちらのガイドをご覧ください。

基本的に、Universal Linksメソッドは、iOSアプリと、AppsFlyerのOneLinkドメイン (xxx.onelink.me) などの関連するWebサイト/ドメインを紐付けることで動作します。そのためには、次のことを行う必要があります:

  1. Configure OneLink sub-domain and link to mobile app (by hosting the ‘apple-app-site-association’ file - AppsFlyer takes care of this part in the onelink setup on your dashboard)
  2. Configure the mobile app to register approved domains:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>com.apple.developer.associated-domains</key>
        <array>
            <string>applinks:test.onelink.me</string>
        </array>
    </dict>
</plist>