MetaMask / MetaMask/metamask-sdk

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

Open
#1,042 9 comments 0 reactions 0 assignees View on GitHub
Bug Triage
Dominant language
TypeScript
Stars
338
Forks
260
PR merge metrics
No merged PRs in 30d

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Web SDK connection flow in Safari and Chrome on a mobile device without MetaMask installed, using the reported wagmi 2.12.13 setup. Trace the mobile redirect handling from the connect action; done means the user is redirected to the MetaMask App Store instead of seeing an invalid-address error or navigation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
mobile, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.