lulupointu / vrouter

MIT License
202 stars 39 forks source link

[Deep Link/Custom Scheme] iOS not getting initial route from url after first launch #209

Open Oubi256 opened 1 year ago

Oubi256 commented 1 year ago

Expected Behavior: image

When cold starting IOS using deepLink, the initialUrl is not overwritten, instead, the initalUrl that was specified in the application is loaded first, and then the deepLink is followed. Instead, after a cold start, there should be a rewrite of the initalUrl so that the first page is immediately from deepLink, as is the case with a cold start on Android

Android no deeplink: launchApp > nullPage > initalPage

deeplink Android cold: launchApp > nullPage > ~initalPage~(rewrite) deeplinkPage

IOS customScheme cold: launchApp > nullPage > initalPage > deeplinkPage

lulupointu commented 1 year ago

Can you provide a small reproducible example please ? 😊

Oubi256 commented 1 year ago

Can you provide a small reproducible example please ? 😊

Yes, here is an example and a link where you can test the launch of the desired page. On a cold start on this link, prev_url should always be null. If you suddenly need to clearly show the difference between an android and an ios device, then write, I will record a video, I think it will not be difficult for me, but I hope this example will be enough.

https://github.com/Oubi256/vrouter_deeplink image

Oubi256 commented 1 year ago

@lulupointu Did you reproduced this issue? I was looking for a solution and came across a question regarding another router with the same problem, perhaps this is the flutter itself. But I think it might help you too. https://github.com/flutter/flutter/issues/109165

moshOntong-IT commented 1 year ago

@lulupointu Did you reproduced this issue? I was looking for a solution and came across a question regarding another router with the same problem, perhaps this is the flutter itself. But I think it might help you too. flutter/flutter#109165

does the VRouter supports deep link? is the issue still not solve?

moshOntong-IT commented 1 year ago

@lulupointu Did you reproduced this issue? I was looking for a solution and came across a question regarding another router with the same problem, perhaps this is the flutter itself. But I think it might help you too. flutter/flutter#109165

does the VRouter supports deep link? is the issue still not solve?

I am just a newbie here, I used Go router, but I am planning to find something router package because GoRouter nested mechanism not stable yet, and that so frustrate me.