簡體   English   中英

如何使用AppsFlyer測試Deferred Deep Linking?

[英]How to test Deferred Deep Linking with AppsFlyer?

我正在將AppsFlyer與Android Native Application集成。 我想使用Deferred Deep Linking,當用戶點擊登陸頁面廣告並下載應用程序時,在第一個應用程序打開時,用戶直接登陸我想要的活動。

鏈接文檔: https//support.appsflyer.com/hc/en-us/articles/207032096-Deferred-Deep-Linking-Getting-the-Conversion Quebec

但我還沒有找到一種方法來檢查我的代碼是否正常運行。 請幫我解決這個問題

您將不得不實現onInstallConversionDataLoaded偵聽器:

public interface AppsFlyerConversionListener {
    void onInstallConversionDataLoaded(Map<String,String> conversionData);
    void onInstallConversionFailure(String errorMessage);
}

這將返回您單擊的鏈接上的所有參數的映射。 您需要注意的參數是af_dp參數。 此參數應包含要將用戶路由到的活動的URI方案。 確保在清單中正確設置了此URI方案。

要創建跟蹤鏈接,您可以使用鏈接管理。 無論是單個平台鏈接還是OneLink都沒關系,只要鏈接上有af_dp參數,該參數(以及鏈接上的所有其他參數)將成為響應的一部分。

如果您仍然遇到問題,請隨時聯系support@appsflyer.com。

對我有用的是:

  1. 在AppsFlyer中添加物理設備作為測試設備(以下是如何操作
  2. didFinishLaunchingWithOptions中的AppDelegate.swift中啟用調試模式

    AppsFlyerTracker.shared().isDebug = true

  3. 在AppDelegate.swift中添加AppsFlyer方法( 根據文章

  4. 從物理設備中刪除應用程序(或測試版本)

  5. 從物理設備打開Deep Link ,您將被重定向到App Store。 不要從App Store安裝應用程序! (關閉它)

  6. 通過XCode安裝應用程序

在它之后,在第一次安裝時,它將調用onConversionDataReceived方法和其余的工作人員。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM