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

uriLinkStream does not bring any event #73

Closed pro100svitlo closed 9 months ago

pro100svitlo commented 10 months ago

Describe the bug

I am using app_links: ^3.4.3 version. Trying to listen to all new events via appLinks.uriLinkStream, but receive nothing. At the same time the stream allUriLinkStream brings me all the clicked events.

Does it related to

Does the example project work?

Did you fully read the instructions for the targeted platform before submitting this issue?

Uploaded your files to webserver, HTTPS, direct connection, scheme pattern setup, ...

AlexPopaUpcode commented 10 months ago

I am experiencing something similar, but only when users are using Chrome browser on iOS. If they are using Safari then everything works good and the app receives the events.

pro100svitlo commented 10 months ago

I am using the simulator for tests and Safari is used there.

llfbandit commented 9 months ago

allUriLinkStream wraps uriLinkStream with getInitialAppLink at preamble. This the same stream. You can't consume twice an event.

llfbandit commented 9 months ago

Sorry I didn't read carefully. You're issue is not on iOS but on web.

On web, there's only one single event that can be fired, the initial link when opening the browser or tab because each link will open a new one.

pro100svitlo commented 9 months ago

Sorry I didn't read carefully. You're issue is not on iOS but on web.

I am sorry, but I know which platform I am using and where I have a problem. Can you please reopen the issue and investigate it?

If you need some more details from me - I can provide them.

llfbandit commented 9 months ago

I am using the simulator for tests and Safari is used there.

? This is a bit misleading

pro100svitlo commented 9 months ago

By that in let you know which device I was using and which defaul browser is there. But the application is flutter iOS one.

llfbandit commented 9 months ago

Ok, so as I said before allUriLinkStream wraps uriLinkStream with getInitialAppLink at preamble. Finally, this the same stream and more globally, there's only one single stream despites the four getters available.

https://github.com/llfbandit/app_links/blob/53798e5d67ebb0508e9681c8ecc3af4165a26063/lib/src/app_links_method_channel.dart#L63

But I don't understand for which use case separate streams would be useful?