MetaMask / MetaMask/metamask-sdk

[Bug]: interrupting downloading Metamask in AppStore

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

Description

### SDK

Web

### Provide environment information

i have problem on iphone so when user click button connect metamask and does not have the app on his phone it redirects him to appstore to download the app. But the problem is that user can simply close appstore, and for some reason he cannot click button connect metamsk anymore. Can u help me? Here is the code:

`const { connected, account, sdk } = useSDK();

{
try {
if (sdk) {
await sdk.resume();

await sdk.connect();
}
} catch (error) {
await sdk?.resume();
}
}}>Connect Metamask`

### MetaMask SDK Version

0.29.2

### MetaMask Mobile app Version

0.29.2

### What browser are you using? (if relevant)

safari

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

help please

### Expected Behavior

when user close appstore and return to button it stil be clickable

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

_No response_

### To Reproduce

help

Contributor guide

Open the contributing guide

Research direction

Start with the useSDK() flow and the sdk.resume()/sdk.connect() calls shown in the issue, then reproduce the interrupted App Store flow on iPhone Safari with MetaMask SDK 0.29.2. Done means the Connect Metamask button remains clickable after the user closes the App Store; a minimal reproduction is still needed to verify the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.