MetaMask / MetaMask/metamask-mobile

[Bug]: Permissions: Switching accounts in MetaMask do not update on the dapp page

Open
#12,687 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

regression-RC-7.38.0 team-wallet-integrations
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### Describe the bug

Switching accounts in MetaMask do not update on the dapp page.

The enabled account on the dapp page remains the initially selected one.

So the account on the dapp page has to be added manually to permissions

### Expected behavior

When switching accounts in MetaMask, receive a toast message that the account is not connected to the dapp and add it to permissions; just like it happens on extension.

### Screenshots/Recordings

https://github.com/user-attachments/assets/b9024b64-ab8e-412a-a016-4517f71dee51

https://github.com/user-attachments/assets/090bcb5e-7c04-43a9-9fa1-189776fddb7c

### Steps to reproduce

1. Have multiple accounts
2. Have currently selected Account 1
3. Connect to sushiswap on any dapp with Account 1
4. Switch to Account 2 in MetaMask
5. Notice Account 1 is connected on Sushiswap (no notification received about updating permissions for Account 2 and account 2 needs to be added manually to permissions for Sushiswap)

### Error messages or log output

```shell

```

### Detection stage

During release testing

### Version

7.38.0

### Build type

Other (please specify exactly where you obtained this build in "Additional Context" section)

### Device

Pixel 6 Pro

### Operating system

Android

### Additional context

I obtained the build from [here](https://app.bitrise.io/app/be69d4368ee7e86d/installable-artifacts/f6e6ee7ba73e63c5/public-install-page/ac67ed2af87d08cb5add47f90190a83b)

### Severity

_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

No file or test is named. Reproduce the account-switching flow on Android 7.38.0 with a dapp such as Sushiswap, then trace the mobile dapp-browser permissions and account-change entry points. Done means switching from Account 1 to Account 2 updates the dapp state and shows the expected permission notification or flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
authorization, mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.