Skip to content

Farcaster connector conflicts with Mobile (EX. metmask , coinbase) Wallet in-app browser (always added globally) #481

@omkar199

Description

@omkar199

When integrating the Farcaster Mini-App connector (@farcaster/miniapp-wagmi-connector) into a Wagmi config that also supports Coinbase Wallet and other injected providers, the dApp fails to connect correctly inside the Coinbase Wallet in-app browser.

The problem is that the Farcaster connector is always added globally to the Wagmi config. This means:

In Coinbase Wallet’s in-app browser, Wagmi tries to use the Farcaster connector instead of the injected Coinbase provider.

This results in UnsupportedMethodError or failed connections (eth_call / sendTransaction not supported).

The dApp works fine in Farcaster Mini-App itself, but breaks in Coinbase’s browser.

Expected behavior

The Farcaster connector should only be registered when actually inside the Farcaster Mini-App environment.

In all other environments (normal browsers, Coinbase Wallet browser, MetaMask, etc.), Wagmi should ignore the Farcaster connector and just use the normal injected / walletConnect / coinbaseWallet connectors.

Steps to reproduce

Add miniAppConnector() to Wagmi config alongside other connectors (MetaMask, coinbaseWallet, walletConnect, etc.).

Open the dApp inside Coinbase Wallet in-app browser.

Try to connect → connection fails with provider errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions