llfbandit / app_links

Android App Links, Deep Links, iOs Universal Links and Custom URL schemes handler for Flutter.
https://pub.dev/packages/app_links
Apache License 2.0
176 stars 68 forks source link

We need a way to know if we handled the current url #41

Closed kaciula closed 1 year ago

kaciula commented 1 year ago

Hi. I can reproduce the issue with the example project.

  1. The app is successfully launched from a deep link
  2. I leave the app and either I terminate the app or I wait for the app to be terminated by the OS
  3. I open the app again
  4. The deep link logic is being triggered again with the same deep link

This impacts the user experience as they do not expect to be taken to a deep link page when opening the app from scratch. Surely there must be a way to clear the deep link history.

llfbandit commented 1 year ago

There is no history. This package is all about forwarding intents to flutter side. Are you sure your app was terminated? On which platform?

kaciula commented 1 year ago

You are right. It is not actually terminated, but restarted from VS Code. If the app is truly started from scratch, it does not have the deep link anymore.

Sorry for the confusion.