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
221 stars 81 forks source link

Function to remove the initial link #130

Closed JoepHeijnen closed 5 months ago

JoepHeijnen commented 5 months ago

Is your feature request related to a problem? Please describe. We are using OAuth for login. After logging in, we no longer need to use the link. Unfortunately, _appLinks.getInitialLink() continues to return the OAuth URL, which is not the desired behavior.

Describe the solution you'd like Is it possible to have a function that removes the initial link, so that _appLinks.getInitialLink() returns null if the app decides to?

llfbandit commented 5 months ago

This is very unclear.

getInitialLink will always return the very first link. Why are you using it explicitly? You can subscribe to the stream and cancel the subscription once you're logged-in.

JoepHeijnen commented 5 months ago

Thank you for your response. I realize now that I misunderstood how the implementation works. Your recommendation is indeed the best solution. I am closing this issue.