MetaMask / MetaMask/metamask-mobile

interrupting downloading Metamask in AppStore

Open
#12,845 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

external-contributor
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### What is this about?

HI!
I have the problem
When a user who does not have MetaMask installed clicks the "Connect Metamask" button, they are redirected to the App Store or Play Store to download MetaMask. However, if the user closes the App Store tab (interrupting the process), the button becomes unresponsive, and users are unable to click it again to attempt the connection.

I use nextjs and @metamask/sdk-react-ui and it`s component:
`const { ready, connected, account } = useSDK();

{ready ? (

) : (
Connect Metamask
)}
`

Can someone help me to solve to make the button work even when user close appstore?

### Scenario

_No response_

### Design

_No response_

### Technical Details

_No response_

### Threat Modeling Framework

_No response_

### Acceptance Criteria

_No response_

### Stakeholder review needed before the work gets merged

- [x] Engineering (needed in most cases)
- [ ] Design
- [ ] Product
- [ ] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- [ ] Security
- [ ] Legal
- [ ] Marketing
- [ ] Management (please specify)
- [ ] Other (please specify)

### References

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the flow using the mentioned MetaMaskButton component with @metamask/sdk-react-ui: close the App Store or Play Store after the redirect and try connecting again. Trace the MetaMaskButton and SDK state involved in that flow; done means the button becomes usable again after the store tab is closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react-native, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.