vrouter icon indicating copy to clipboard operation
vrouter copied to clipboard

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

Open Oubi256 opened this issue 2 years ago • 5 comments

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

Oubi256 avatar Jan 24 '23 08:01 Oubi256

Can you provide a small reproducible example please ? 😊

lulupointu avatar Jan 24 '23 09:01 lulupointu

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 avatar Jan 24 '23 10:01 Oubi256

@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

Oubi256 avatar Jan 25 '23 13:01 Oubi256

@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 avatar Nov 05 '23 13:11 moshOntong-IT

@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.

moshOntong-IT avatar Nov 05 '23 13:11 moshOntong-IT