wallet_switchEthereumChain and wallet_addEthereumChain dont do anything
Describe the bug I use wallet_switchEthereumChain and wallet_addEthereumChain in react native dapp, i create session wallet connect and after that when user clicks specific button, i call sendCustomRequest and it only opens metmask mobile and there is no switch confirmation and actually there is no any response, just opens metamask no error nothing
Screenshots

Expected behavior popup with confirmation A clear and concise description of what you expected to happen
Smartphone (please complete the following information):
- Device: OPPO
- OS: Android 10
Maybe i missed something, help me to resolve it or this flow not working yet
Related to #3581
I have the same issue, can anyone answer it?
@DecodingByte This fix will be included in v4.2.0
@emadhamad171 @DecodingByte can you verify if this is fixed in the latest release?
It's working in metamask version 5.3.0.
@sethkfman could this issue be related to #3312?
This is again not working with Wallet Connect V2.
I can't switch the chains
I have this issue when using WalletConnect V2 as well.
Same here, I have this issue when using WalletConnect V2.
@gantunesr I have also encountered this problem. May I ask how to handle it? This is how I operate.
"dependencies": {
"@walletconnect/ethereum-provider": "^2.8.6",
},
import { EthereumProvider } from '@walletconnect/ethereum-provider';
const provider = EthereumProvider.init({
projectId,
chains: [5], // REQUIRED chain ids
showQrModal: true,
relayUrl: "wss://relay.walletconnect.org",
optionalChains: [1, 5, 56, 137, 10, 100],
optionalMethods: [
'eth_sendTransaction',
'wallet_switchEthereumChain',
'wallet_watchAsset',
'wallet_addEthereumChain',
],
optionalEvents: ['accountsChanged', 'chainChanged', 'network', 'disconnect'],
})
// Switch network, But there is no response on the Metamask Mobile App.
provider.request({
method: "wallet_switchEthereumChain",
params: [{ chainId: id.toString(16) }],
})
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.
This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.