Uniswap / web3-react

A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps
https://web3-react-mu.vercel.app/
GNU General Public License v3.0
5.53k stars 1.52k forks source link

Coinbase Connecting Issue #901

Open reddigszymon opened 11 months ago

reddigszymon commented 11 months ago

I have problems connecting with a Coinbase Wallet. Keep in mind i have installed both Metamask and Coinbase Wallet.

When using web3React and activating the WalletLinkConnector like this:

const coinbaseWalletConnector = new WalletLinkConnector({ url: RPC_URLS[1], appName: "app", });

Sometimes the wallet connects as it should, but sometimes it redirects tme to this url https://www.coinbase.com/pl/connect-dapp?uri=http%3A%2F%2Flocalhost%3A3000%2F with a whitescreen.

It pretty much always happens when i connect with coinbase wallet, i disconnect from inside the coinbase application and try to connect again. Sometimes it works, sometimes it doesn't (mainly doesn't work).

In the console i see:

Failed to launch 'intent://open?_branch_referrer=H4sIAAAAAAAAA8soKSkottLXT8%2FXS07SLddLzs%2FVT0ksKLBPTopPTC7JzM%2BzBXHVgNzSohzbDKByVWNHVSM3IMrJT07MycgvLgGKGBsYGACFAALgKShPAAAA&link_click_id=1250047599522166652#Intent;scheme=cbwallet;package=org.toshi;S.browser_fallback_url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dorg.toshi&referrer=link_click_id-1250047599522166652;S.market_referrer=link_click_id-1250047599522166652&cb_action%3Ddapp%26cb_url%3Dhttp%3A%2F%2Flocalhost%3A3000%2F;B.branch_intent=true;end' because the scheme does not have a registered handler.

I also tried running it on https, but it gives the same results.

What is interesting is that when i was playing around with it on uniswap.org i sometimes also get the error - not as frequently, but it happens, like 1 in 20 connections fail, and then suddenly the Coinbase Wallet disappears from uniswap, as if they know this error exists and just disable the ability to connect using it.

My code works fine with Metamask.