Skip to content
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

[Bug]: connect on mobile cannot open page because address is invalid #1042

Open
ques122 opened this issue Sep 24, 2024 · 8 comments
Open

[Bug]: connect on mobile cannot open page because address is invalid #1042

ques122 opened this issue Sep 24, 2024 · 8 comments
Labels
Bug Triage Issues to be triaged in the next session

Comments

@ques122
Copy link

ques122 commented Sep 24, 2024

SDK

Web

Provide environment information

chrome, safari

MetaMask SDK Version

wagmi 2.12.13

MetaMask Mobile app Version

wagmi 2.12.13

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

Display error popup when attempting to connect the wallet.

  • Condition: MetaMask wallet is not installed on the mobile device.

  • Action: Click the button to connect to MetaMask.

  • Actual:

    • On Safari, an error popup says: "Safari cannot open the page because the address is invalid."
    • On Chrome, a warning appears about navigation.

Expected Behavior

Expected: Redirect to the MetaMask App Store.

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

No response

To Reproduce

  • execute the function to connect the MetaMask wallet
@christopherferreira9 christopherferreira9 added the Bug Triage Issues to be triaged in the next session label Sep 25, 2024
@ques122
Copy link
Author

ques122 commented Sep 26, 2024

Hi @christopherferreira9
Do you have any updates regarding this issue?

@FlaviuWeb3
Copy link
Collaborator

Hi @ques122 I was trying to reproduce the above issue and I wasn't able to do it. Please provide more details about it.

@barskhianfannie
Copy link

barskhianfannie commented Jan 28, 2025

This issue persists for me as well and is only occuring when connecting to metamask wallets from mobile.

The app will ask if I wish to Open this page in "MetaMask", after wallet connection, then when I route to a valid token page, there is a popup which states `Safari cannot open the page because address is invalid.

Image Image

@christopherferreira9
Copy link
Collaborator

@barskhianfannie is there a dapp we can test on our side to try to debug this issue?

@barskhianfannie
Copy link

@christopherferreira9 You can use https://matcha.xyz and just make sure you do not go to the in wallet browser and use your mobile device's browser.

@christopherferreira9
Copy link
Collaborator

@barskhianfannie is there a specific flow we need to follow in order to reach the MetaMask SDK implementation? Asking because the MetaMask option in your dapp is using WalletConnect instead

@barskhianfannie
Copy link

  1. Connect to Metamask wallet

Image

  1. Navigate back to application & then route to any token page.

This is when the Safari cannot open this page because it is invalid message appears, although I successfully am routed to a token page.

@christopherferreira9
Copy link
Collaborator

hi @barskhianfannie ! That connection is using WalletConnect and not the MetaMask SDK, we suggest you open a bug directly in Privy or WalletConnect themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Triage Issues to be triaged in the next session
Projects
None yet
Development

No branches or pull requests

4 participants