What I’m trying to do:
I’m trying to create a dapp using Anvil, but I’m having a hard time making it work on mobile. Could anyone point me in the right direction?
What I’ve tried and what’s not working:
I’ve tried using ethers, but window.ethereum does not exist on mobile.
Then I started looking into web3modal and walletconnect.
The web3modal approach is the closest I’ve gotten so far: it works on desktop, but opens a gray modal seemingly without content on mobile. When the clicking anywhere in the modal, I get the following error: InternalError: Modal closed by user. (see clone link below)
@stucork Any idea what I’m doing wrong / what else I could try? I’ve searched around the forum but did not find a working solution to connect to a crypto wallet that works both on desktops as on mobile.
@joinlook and @owen.campbell Tagging both of you since by the looks of it you have experimented quite a bit with dapps on Anvil. Any chance you guys could put me on the right track?
@meredydd Do you have an idea? Been trying to get this working for days, but I just can’t seem to get there. Anyone on the team has any experience with wallet integrations?
Works like a charm on desktop, but I can’t seem to connect on mobile (it opens metamask, but the prompt to connect never shows up). Any idea what could cause this?
Chrome on android. It opens metamask, after I auth with my finger it shows a message “connecting to metamask” but after that nothing happens. Tried altering some UI elements on the “connect” event (since I can’t access the dev console on mobile) but the event is never triggered.