App was opening fine with myapp:// scheme. Suddenly it stopped opening with myapp:// scheme. I called Linking.makeUrl() and it returned myapp:///. Now when i open myapp:/// scheme the app works fine. I can't seem to find any place where this change happened. I want to use double slashes in my deeplink. It's an Expo App and the only configuration i can find for deeplink is setting the scheme in app.json file like "scheme": "myapp".
I got the answer from expo community. This is the new behavior of Expo deeplink after SDK 37 update. The answer was as follows:-
we changed this in SDK 37. You can read more about that here, or in the changelogs for SDK 37. To summarize:
Custom URIs with only 2 slashes aren't valid URIs, usually it consists of :///[/...]. In these custom URIs, we don't have a host and must leave that blank in order to comply with RFC 3986.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With