Skip to content

Deep Link Re-emission Issue on App Background to Foreground Transition - deeplink #373

@tiagosito

Description

@tiagosito

Describe the bug
When using the Appsflyer SDK (version 6.15.1) with Flutter, the appsflyerSdk.onDeepLinking method is triggered automatically when the app returns to the foreground, causing the deep link to be re-emitted and reprocessed.

To Reproduce
Steps to reproduce the behavior:

  1. Integrate Appsflyer SDK version 6.15.1 in a Flutter project.
  2. Implement the appsflyerSdk.onDeepLinking method to listen for deep links.
  3. Receive and process a deep link while the app is in the foreground.
  4. Move the app to the background.
  5. Bring the app back to the foreground.
  6. Observe that the appsflyerSdk.onDeepLinking method is triggered again.

Expected behavior
The deep link should not be re-emitted and reprocessed when the app returns to the foreground.

  • OS: macOS 14.7.2 darwin-arm64
  • Android-arm64 • Android 14 (API 34)
  • iPhone 16 Pro Max (mobile)

Additional context
I have tried to find a way to clear this information from the SDK but have not been successful. Any assistance or solution to this issue would be greatly appreciated. A suggested solution is to provide a way to clear the deep link information from the SDK after it has been processed by the appsflyerSdk.onDeepLinking method, either by default or through a configuration option in the setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions