AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
151 stars 120 forks source link

Appsflyer onDeepLinking not working in iOS #333

Open huongrealest opened 3 months ago

huongrealest commented 3 months ago

Link only open app but not jump to onDeepLinking i have some log

[AppsFlyerSDK] [AppsFlyer Exception Client] [EXM] No configuration. Exceptions will not be sent
[AppsFlyerSDK] [com.appsflyer.serial] [SKAd] S2S URL: https://3ipvb5-skadsdkless.appsflyersdk.com/api/v2.0/conversion-value?uid=1723185882615-4185564&app_id=id1627387118&trigger=bg&session_counter=19&iaecounter=0&device_timestamp=1723445904804&prev_response_time=1723445900397&prev_update_time=1723445900400&prev_update_value=-10010&prev_response_code=200&session_length=55&os_version=16.3.1&sdk_version=6.14.3&bundle_id=com.shs.com.vn.SHMobileF&device_model=iPhone12,5&gcv_transaction_id=6D309EE1-06EE-4D2E-8BD4-13F6DCBA338F
[AppsFlyerSDK] [com.appsflyer.serial] [SKAd] S2S Request Result: {
    "coarse_value" = low;
    lock = 0;
    "next_w_time" = 1723790714411;
    "postback_sequence_index" = 1;
    value = 0;
}, conversionValue status: -10010
AppsFlyer [deep link]: continue userActivity
[AppsFlyerSDK] [com.apple.main-thread] Referrer URL: (null)
[AppsFlyerSDK] [com.apple.main-thread] NSUserActivity `webpageURL`: https://shtrading.onelink.me/4ox6/n200mwqz?utm_source=zalo&utm_medium=zalo&utm_campaign=zalo
[AppsFlyerSDK] [com.appsflyer.serial] Deeplink regex execution time: 0.000030
[AppsFlyerSDK] [com.appsflyer.serial] [HTTP] Operation start: `OneLink-76B46075-CE06-4AC7-A13D-02DCD56ECFD2`
[AppsFlyerSDK] [com.appsflyer.serial] UniversalLink/Deeplink found:
https://shtrading.onelink.me/4ox6/n200mwqz?utm_source=zalo&utm_medium=zalo&utm_campaign=zalo
[AppsFlyerSDK] [com.appsflyer.serial] Validate custom domain URLs: (
    "https://shtrading.onelink.me"
)
[AppsFlyerSDK] [com.appsflyer.serial] Shortlink found. Executing: https://3ipvb5-onelink.appsflyersdk.com/shortlink-sdk/v2/4ox6?id=n200mwqz
[AppsFlyerSDK] [afsdk-buffer-serial] [HTTP] Dealloc. Time elapsed for: `OneLink-76B46075-CE06-4AC7-A13D-02DCD56ECFD2` - 0.003997921943664551
[AppsFlyerSDK] [com.appsflyer.serial]
[Shortlink] OneLink:{
    "af_referrer_uid" = "1723197944033-5412679734315850732";
    "af_siteid" = "com.ftlvn.mts.shs.dev";
    "media_source" = "af_app_invites";
    pid = "af_app_invites";
    remNo = A4C5;
}
[Shortlink] Response Info:{
    data = {length = 161, bytes = 0x7b226166 5f736974 65696422 3a22636f ... 6e766974 6573227d };
    dataStr = "{\"af_siteid\":\"com.ftlvn.mts.shs.dev\",\"remNo\":\"A4C5\",\"af_referrer_uid\":\"1723197944033-5412679734315850732\",\"pid\":\"af_app_invites\",\"media_source\":\"af_app_invites\"}";
    retries = 0;
    statusCode = 200;
    taskIdentifier = 10;
}
github-actions[bot] commented 3 months ago

πŸ‘‹ Hi @huongrealest 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:

huongrealest commented 3 months ago

i am using flutter 3.7 and plugin version 6.14.3 when i debug, i saw log "AppsFlyer [deep link]: continue userActivity" in that function

override func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
        NSLog("AppsFlyer [deep link]: continue userActivity")
        AppsFlyerAttribution.shared()!.continueUserActivity(userActivity, restorationHandler:nil )
        return true
    }
CaleyD commented 1 month ago

We're seeing this same issue and unable to get passed it.