Skip to content

Reown not working when you need to switch the network in Metamask iOS #1231

@juans-chainsafe

Description

@juans-chainsafe

Describe the bug
This issue happens when, in Metamask, you have another network like Arbitrum and your project settings are in Sepolia. Reown asks Metamask to switch the network, which works, but when you go back to the app, is stuck in a loading loop.

Steps
Steps to reproduce the behavior:

  1. Build in iOS
  2. In Metamask set a different network from the one in Project settings
  3. Click on Connect button
  4. Click on Reown option
  5. Click on Metamask option
  6. Connect wallet in Metamask and go back to the app
  7. App should redirect back to Metamask to switch network
  8. Click on Switch network button in Metamask
  9. Go back to the app

Expected behavior

  • Switching network loading spinner disappears and wallet is connected

Console errors
Didn't get console errors

Screenshots/Video
IMG_1353

Mobile (please complete the following information):

  • Chainsafe SDK version: [dev]
  • Platform: [iOS]
  • Device Type: [Real device]
  • OS Version: [latest]

Additional context
Even if I close the app and open it again, doesn't work. The workaround is to build the app again and have the correct network in Metamask.

Metadata

Metadata

Assignees

Labels

Priority: P1Added to issues and PRs relating to a high severity bugs.Type: BugAdded to issues and PRs if they are addressing a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions