This integration offers a direct, in-context connection between mobile web dapps and the Coinbase Wallet, without reloading the dapp in the in-app browser.
This feature is currently in an experimental phase and may undergo changes to enhance its functionality and user experience.
Update to the latest SDK
Ensure your dapp uses the Coinbase Wallet SDK version 3.8.0 or later.
Enable feature in SDK initialization
When initializing the Coinbase Wallet SDK, set enableMobileWalletLink: true
. This activates the direct connection feature for mobile device users.
To open the Coinbase Wallet mobile app to a specific dapp in the dapp browser tab, you can use a deep link. You can use a deep link from either a web or a native app.
https://go.cb-w.com/dapp?cb_url=[YOUR_URL]
YOUR_URL
should be encoded with percent-encoding.
To open https://nft.coinbase.com/@barmstrong?param1=hello¶m2=world
, it should be formatted:
In order to open a custom scheme (for example, to switch back to your app), you may pass the optional parameter cb_callback
into the universal link.
Custom scheme callback is supported on version 26.8+.
https://go.cb-w.com/dapp?cb_url=[YOUR_URL]&cb_callback=[YOUR_CALLBACK_SCHEME]
You may use a custom protocol instead of the universal link. This is helpful if users are running into the iOS bug that routes users to the App Store instead of directly to the app when it’s already installed.
cbwallet://dapp?url=[YOUR_URL]