-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deeplink not opening the browser of metamask #3855
Comments
Hi Qiweih, |
I'm having this same issue on android. https://metamask.app.link/dapp/example.com or https://metamask.app.link/dapp/https://example.com just drops me into the wallet not into the browser. Works fine on ios/safari smartphone
|
@andreahaku Yes i have the /dapp/ , i still have the problem with this. Can you reopen the issue, as it's not resolved ? |
Also having this issue. It was working for me in December but it's not working now. Tried generating the deep link again but it's the same and the metamask app browser doesn't open with the dapp URL. |
I'll reopen another issue, we can't close an issue while nothing is solved |
Android |
Hi, |
@andreahaku i tried the new version, still the same issue, when trying to open a deeplink, it opens the app but do not trigger the browser. |
@andreahaku i tested several times, it works if i open the deeplink in an Application that i made, however it don't open it if i use a navigator like chrome or others. |
Hi everyone! Just wondering, was this issue fixed? Experiencing the same problem. Whenever I do: 4.2.2 of metamask. |
It doesnt make a difference if you add https://metamask.app.link/dapp/example.com or https://metamask.app.link/dapp/https://example.com as the code just replaces the https:// and http:// after /dapp. |
It's really annoying.. however this seems like a platform issue. When I long-press the link in the mobile browser in iOS, one of the opens is to open MetaMask which does deep link into the in-app browser. I'm not sure if MetaMask can do anything extra to make this without the long-press which would be ideal. |
@cortisiko seem not fixed yet...quite a many comments specified not resolving...
@andreahaku Same not working with latest v5.0.1, here is the screen recording https://user-images.githubusercontent.com/77238199/165326244-c9471c12-f88b-4ff8-b207-80f410623c51.MOV |
So we have investigated the issue and unfortunately it does not depend on MetaMask mobile but on a mix of restrictions from mobile browsers and our deep link service provider. The issue doesn't happen if the link is "tapped/clicked" by the user. It does happen with redirects and similar programmatic link openings. So there are two potential workaround to it:
About point 2 I just developed and tested a quick and simple JS function that does that.
and it can be used like this:
This works on Android and iOS Chrome. On iOS Safari still opens the app store instead of MetaMask mobile app. Let me know if this helps you. Thanks. |
This worked for me. Thanks |
@andreahaku I personally thinking most Iphone user will be using safari as primary browser (im one of it), as you said this problem still persist in IOS safari when open deeplink of the metamask, I am trying the find the solution on it, lets reopen the issue? |
@liho00 At the moment there isn't anything else that can be done other than using one of the two suggested workarounds. I also developed another workaround that we are deciding if we want to integrate in the app or not. You can find it here. |
It works for me if I do location.href= "the link you want to open" |
I tried your way but still the same result :( |
I'm having the same issue as @Spider149 with Android. None of the suggested solutions are working, the Metamask app opens, but it just shows the wallet page. |
Just want to add that none of the suggested approaches are working for me either. The behaviour I want is that MetaMask is opened with the browser open, and the URL I pass in is loaded. Here's what I've tried and every time it just lands on the MetaMask home (wallet) screen:
I'm on Android 12 and using this Intent launching code:
Hope this gets resolved soon! 🙏 |
Still not working on iOS nor Android Android Chrome, Android 12 (Samsung Note 10), with Metamask Mobile 5.2.0 No matter |
Encountered the same problem, is there a solution? |
This solution worked for me: #3965 (comment) |
Is there a way where android will not have to change chooser settings? |
Did anyone find a solution to this issue?? |
yes!! the link to open is :
|
Describe the bug
I'm trying to open metamask with the deep link https://metamask.app.link/dapp.
I tried it on two different phones, in one it open the browser in Metamask App, and all is working well. But on another phone, it opened metamask app but it did not trigger the browser, nothing happened.
Screenshots
Here is two videos where we can see that in one phone all is working well and in another, it's not working.
This one is working
https://github.com/Qiweih/twino/blob/master/testmetamask.mp4
This one is not working
https://github.com/Qiweih/twino/blob/master/MetaMask%20(2).mp4
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: