-
-
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
Deep link opening iOS AppStore even when MetaMask is installed #3965
Comments
Thanks @epshtielsl for opening the issue. We are investigating it and trying to find the reason for this behaviour. Thanks again. |
any update? |
yes also hoping for some news. Thanks. |
@andreahaku is there any update? this is happening for very long time |
same issue here, izit caused by IOS or IOS version? |
Did you try the latest version of the app (5.0.x) as most of the deep links related issue should be solved with it. Please let me know. Thanks! |
this is the code that i used to trigger the deep link navigation.
@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 |
Same issue here, using Metamask version 5.0.1. The deeplink from WC is |
Tried with: which seems to match the spec here [1] but the deep link still goes to the app store. |
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. |
I've tried your implementation but it still open up appstore on iOS chrome, anyone else facing this issue? |
Same issue trying to integrate a dApp with WalletConnect. I saw the address bar changing to metamask.app.link.. and then app store is opened MetaMask 5.0.1 |
↑ "This page will open in another application" and pressing "Open" redirects to app store as well |
this problem still goes on in safari, chrome, etc. only open app store |
Same issue in Safari, trying to connect to MM using web3-react library (with wallet connect provider). Users get a pretty bad UX |
You can fix this by overriding the default WalletConnect provider implementation of the URL redirect, which is specified as a handler of the
The logic above disables WalletConnects default handler, which sets window.location to the MM universal link (this doesn't work). Once disabled, make your own button to initiate the universal link action:
|
can you share the implementation of makeMobileUniversalTxSignLink()? |
As an alternative to This is not a deep link, so the only disadvantage is that it won't check if MM mobile is installed and if not take the user to stores. It only works if the app is already installed. |
@tuoomz yes
|
Yesterday I developed a potential fix for this that you can find here: #4167 We are testing it internally and hopefully have it merged into one of the coming releases (hopefully 5.2.0). If anyone has a way to test it and has some feedback it's more than welcome ;) Thanks |
Can release this app now? And let public test, 8 days testing deep link quite slow, let public test this new feature can be faster. |
Close in favour of #4167 |
This one worked for me, thanks) |
Describe the bug
Deep links are opening up the App Store and prompting users to install MetaMask, even when the app is already installed on the devicie.
Screenshots
https://community.metamask.io/t/deeplink-opens-appstore-when-app-installed/18199/12
To Reproduce
Open any app that utilizes deep links to integrate with MetaMask, i.e. dapps that utilize WalletConnect. When you attempt to sign a transaction, or other requests, MetaMask will open briefly, then the Apple AppStore opens up.
Expected behavior
MetaMask opens and performs the task requested.
Smartphone (please complete the following information):
to be added after bug submission by internal support / PM
Severity
The text was updated successfully, but these errors were encountered: