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

same intent gets forwarded if the app is launched from the recent tabs #72

Closed vikrantyadav7 closed 8 months ago

vikrantyadav7 commented 10 months ago

When the app is opened through a link it passes the intent which is good, but if go back to recent tabs and open the app again it passes the same intent again.

So is there any way we can clear that intent after its used or we check if the app is being launched through the recent tabs.

I found a stackoverflow question for the same. Can we apply it to our package. (https://stackoverflow.com/questions/34311501/how-to-clear-intent-data-in-activity-after-open-from-url)

[ x] App Links (Android)
[ x] Deep Links (Android)

llfbandit commented 9 months ago

Thanks for the report and the provided hint to prevent this.

llfbandit commented 9 months ago

Available in v3.4.5. I didn't reproduced the issue from the simulator. So feedback welcome!

Ozak93 commented 9 months ago

Available in v3.4.5. I didn't reproduced the issue from the simulator. So feedback welcome!

i upgraded to v3.4.5 and it's still happening in the simulator, if i just hot restart the app after receiving an applink intent then it will always trigger my stream listening to applinks.

llfbandit commented 9 months ago

Hot restarting isn't related to this issue. By the way your users can't hot reload and there's nothing to fix in this area.

vikrantyadav7 commented 8 months ago

Hello @llfbandit,

I've upgraded the package and tested it on both a real device and an emulator. Unfortunately, the result remains the same. The same URL is received from both methods, namely, getInitialLink and getLatestLink.