adjust / flutter_sdk

This is the Flutter SDK of
MIT License
58 stars 49 forks source link

Incorrect Deep Link Attribution After App Reinstallation #133

Open PauloReiis opened 5 months ago

PauloReiis commented 5 months ago

Description:

I'm experiencing an issue with the Adjust SDK where deep links are being incorrectly attributed after app reinstallation on iOS.

Version of Adjust SDK: 4.38.0 Platform: iOS Flutter Version: 3.19.2 Dart Version: 3.3.0

Steps to Reproduce:

Click on deeplink A and install the app. Open the app and receive deeplink A. Uninstall the app. Click on deeplink B and install the app. Open the app and receive deeplink A instead of deeplink B. Expected Behavior:

The app should receive deeplink B after clicking on deeplink B and opening the app for the second time.

Current Behavior:

The app receives deeplink A instead of deeplink B.

Additional Notes:

This issue only occurs after app reinstallation.

Log:

    [Adjust]w: SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing
    [Adjust]d: Delegate implements adjustDeeplinkResponse:
    [Adjust]d: Adjust directory not present and will be created
    [Adjust]d: File AdjustIoAttribution not found in "Application Support/Adjust" folder
    [Adjust]d: File AdjustIoAttribution not found in Documents folder
    [Adjust]d: File AdjustIoActivityState not found in "Application Support/Adjust" folder
    [Adjust]d: File AdjustIoActivityState not found in Documents folder
    [Adjust]d: File AdjustSessionCallbackParameters not found in "Application Support/Adjust" folder
    [Adjust]d: File AdjustSessionCallbackParameters not found in Documents folder
    [Adjust]d: File AdjustSessionPartnerParameters not found in "Application Support/Adjust" folder
    [Adjust]d: File AdjustSessionPartnerParameters not found in Documents folder
    [Adjust]v: Foreground timer configured to fire after 60,0 seconds of starting and cycles every 60,0 seconds
    [Adjust]d: LinkMe not allowed by client
    [Adjust]v: Foreground timer starting
    [Adjust]d: File AdjustIoPackageQueue not found in "Application Support/Adjust" folder
    [Adjust]v: Subsession start
SKAdNetwork: Error while updating conversion value: Error Domain=SKANErrorDomain Code=10 "(null)"
    [Adjust]d: File AdjustIoPackageQueue not found in Documents folder
    [Adjust]v: Primary dedupe token successfully read
    [Adjust]v: Primary dedupe token successfully read
    [Adjust]d: Added package 1 (session)
    [Adjust]v: Path:      /session
    [Adjust]v: ClientSdk: flutter4.38.0@ios4.38.0
    [Adjust]v: Parameters:
    [Adjust]v:      app_token              X
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:0 sl:0.0 ts:0.0 la:1712764296.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3
    [Adjust]v:      app_version            202403281830
    [Adjust]v:      app_version_short      5.21.0
    [Adjust]v:      att_status             3
    [Adjust]v:      attribution_deeplink   1
    [Adjust]v:      bundle_id              X
    [Adjust]v:      created_at             2024-04-10T12:51:36.018Z-0300
    [Adjust]v:      device_name            iPhone12,1
    [Adjust]v:      device_type            iPhone
    [Adjust]v:      environment            sandbox
    [Adjust]v:      event_buffering_enabled 0
    [Adjust]d: Wait for the app to go to the foreground to start the sdk
    [Adjust]v:      idfa                   X
    [Adjust]v:      idfv                   X
    [Adjust]v:      installed_at           2024-04-10T12:49:17.967Z-0300
    [Adjust]v:      needs_response_details 1
    [Adjust]v:      os_name                ios
    [Adjust]v:      os_version             17.4.1
    [Adjust]v:      primary_dedupe_token   X
    [Adjust]v:      session_count          1
    [Adjust]v:      skadn_registered_at    2024-04-10T12:51:36.012Z-0300
    [Adjust]v:      started_at             2024-04-10T10:13:53.000Z-0300
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:0 sl:0.0 ts:0.0 la:1712764296.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3
    [Adjust]d: Package handler wrote 1 packages
    [Adjust]v: Sending request to endpoint: https://consent.adjust.com/session
    [Adjust]d: AdServices framework successfully found in the app
    [Adjust]v: Primary dedupe token successfully read
    [Adjust]d: Added sdk_click 1
    [Adjust]v: Path:      /sdk_click
    [Adjust]v: ClientSdk: flutter4.38.0@ios4.38.0
    [Adjust]v: Parameters:
    [Adjust]v:      app_token              X
    [Adjust]v:      app_version            202403281830
    [Adjust]v:      app_version_short      5.21.0
    [Adjust]v:      att_status             3
    [Adjust]v:      attribution_deeplink   1
    [Adjust]v:      attribution_token      X
    [Adjust]v:      bundle_id              X
    [Adjust]v:      created_at             2024-04-10T12:51:36.049Z-0300
    [Adjust]v:      device_name            iPhone12,1
    [Adjust]v:      device_type            iPhone
    [Adjust]v:      environment            sandbox
    [Adjust]v:      event_buffering_enabled 0
    [Adjust]v:      idfa                   X
    [Adjust]v:      idfv                   X
    [Adjust]v:      installed_at           2024-04-10T12:49:17.967Z-0300
    [Adjust]v:      last_interval          0
    [Adjust]v:      needs_response_details 1
    [Adjust]v:      os_name                ios
    [Adjust]v:      os_version             17.4.1
    [Adjust]v:      primary_dedupe_token   X
    [Adjust]v:      session_count          1
    [Adjust]v:      session_length         0
    [Adjust]v:      skadn_registered_at    2024-04-10T12:51:36.012Z-0300
    [Adjust]v:      source                 apple_ads
    [Adjust]v:      started_at             2024-04-10T10:13:53.000Z-0300
    [Adjust]v:      subsession_count       1
    [Adjust]v:      time_spent             0
    [Adjust]d: AdServices framework successfully found in the app
    [Adjust]v: Sending request to endpoint: https://consent.adjust.com/sdk_click
flutter: -- CrmAnnouncementSection[#69600] INITIALIZED
    [Adjust]v: Response: {"app_token”:”X”,”adid”:”X”,”timestamp":"2024-04-10T15:51:36.904Z+0000","message":"Session tracked","ask_in":5000}
    [Adjust]d: Request succeeded with current URL strategy
    [Adjust]d: Got JSON response with message: Session tracked
    [Adjust]d: Waiting to query attribution in 5000 milliseconds
    [Adjust]v: Attribution timer starting. Launching in 5,0 seconds
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:1 sl:0.0 ts:0.0 la:1712764296.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3
    [Adjust]d: Package handler wrote 0 packages
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:1 sl:0.0 ts:0.0 la:1712764296.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3
    [Adjust]v: Response: {"app_token”:”X”,”adid”:”X”,”timestamp":"2024-04-10T15:51:36.906Z+0000","message":"Click tracked"}
    [Adjust]d: Request succeeded with current URL strategy
    [Adjust]d: Got click JSON response with message: Click tracked
    [Adjust]i: Received Apple Ads click response
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:0 sl:0.0 ts:0.0 la:1712764296.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3
    [Adjust]v: Attribution timer fired
    [Adjust]v: Primary dedupe token successfully read
    [Adjust]v: Path:      /attribution
    [Adjust]v: ClientSdk: flutter4.38.0@ios4.38.0
    [Adjust]v: Parameters:
    [Adjust]v:      app_token              X
    [Adjust]v:      app_version            202403281830
    [Adjust]v:      app_version_short      5.21.0
    [Adjust]v:      att_status             3
    [Adjust]v:      attribution_deeplink   1
    [Adjust]v:      bundle_id              X
    [Adjust]v:      created_at             2024-04-10T12:51:42.075Z-0300
    [Adjust]v:      device_name            iPhone12,1
    [Adjust]v:      device_type            iPhone
    [Adjust]v:      environment            sandbox
    [Adjust]v:      event_buffering_enabled 0
    [Adjust]v:      idfa                   X
    [Adjust]v:      idfv                   X
    [Adjust]v:      initiated_by           backend
    [Adjust]v:      installed_at           2024-04-10T12:49:17.967Z-0300
    [Adjust]v:      needs_response_details 1
    [Adjust]v:      os_name                ios
    [Adjust]v:      os_version             17.4.1
    [Adjust]v:      primary_dedupe_token   X
    [Adjust]v:      skadn_registered_at    2024-04-10T12:51:36.012Z-0300
    [Adjust]v:      started_at             2024-04-10T10:13:53.000Z-0300
    [Adjust]v: Sending request to endpoint: https://consent.adjust.com/attribution
    [Adjust]v: Response: {"app_token”:”X”,”adid”:”X”,”timestamp":"2024-04-10T15:51:42.809Z+0000","message":"Attribution found","attribution":{"tracker_token”:”X”,”tracker_name":"Zagalo Teste::Paulo_Teste","network":"Zagalo Teste","campaign":"Paulo_Teste","click_label":"influencer_id=333444"}}
    [Adjust]d: Request succeeded with current URL strategy
    [Adjust]d: Got attribution JSON response with message: Attribution found
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:0 sl:0.0 ts:0.0 la:1712764296.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3
    [Adjust]d: Wrote Attribution: tt:X tn:Zagalo Teste::Paulo_Teste net:Zagalo Teste cam:Paulo_Teste adg:(null) cre:(null) cl:influencer_id=333444 adid:X ct:(null) ca:(null) cc:(null)
    [Adjust]v: Foreground timer fired
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:0 sl:60.0 ts:60.0 la:1712764356.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3
    [Adjust]v: Foreground timer fired
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:0 sl:120.0 ts:120.0 la:1712764416.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3
    [Adjust]v: Foreground timer fired
    [Adjust]d: Wrote Activity state: ec:0 sc:1 ssc:1 ask:0 sl:180.0 ts:180.0 la:1712764476.0 dt:(null) gdprf:0 dtps:0 dtpsc:0 att:3

Please let me know if you have any other questions.