External wallet (Metamask) disappeared

web3 modal sdk

  • SDK Version:
    @web3auth/base”: “^8.5.0”,
    @web3auth/ethereum-provider”: “^8.5.0”,
    @web3auth/metamask-adapter”: “^8.5.0”,
    @web3auth/modal”: “^8.5.0”,

Hello. I am using the same source code, but there is a difference between the mobile(web app) and PC screens.

As you can see in the screenshots below, the MetaMask connect button is visible on the PC screen but not on the mobile screen.

Could you help me understand why this might be happening?


pc


mobile(web app)

Hey @jh.koo this is working as intended. The Web3Modal only shows the option to connect with Metamask, if the Metamask is installed which is the case for PC. While on your phone, the Metamask might not be installed, that’s why it’s not showing the option.

Thank you for your response.

I have additional questions:

1)Is the MetaMask connect button not displayed even if MetaMask is installed on the mobile device?

  1. In the MetaMask browser on mobile, it appears the same as it does on the PC.

Can users add alerts if they don’t have a metamask?

Could you help me with these questions?

The Metamask is not displayed when it’s on mobile device, because it checks whether it’s installed or not using injected scripts. When you connect Metamask on browser it kind of injects the script to listen to request and respond back. Since it’s installed on Mobile, you browser cannot communicate with the Mobile Application directly. In such cases you can use WalletConnect adapter. Or, you can open your website in the Metamask application browser it’ll work fine as you tested.

Can you please explain what do you mean by alerts if they don’t have a metamask?

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.