RootSoft / walletconnect-dart-sdk

Open protocol for connecting dApps to mobile wallets with QR code scanning or deep linking.
MIT License
103 stars 61 forks source link

how to connect with metamask default #94

Open ShallowGreen opened 1 year ago

ShallowGreen commented 1 year ago

var session = await connector.createSession(onDisplayUri: (uri) async { _uri = uri; await launchUrlString(uri, mode: LaunchMode.externalApplication); });

this will wake up all wallet app which can connect, but I just want connect with metamask default, how should I do?

HaoCherHong commented 1 year ago

If you're using Android, this is controlled by OS. Android should give you a dialog and ask you to select an wallet app. And you can set the app as default in that dialog.

dawidope commented 1 year ago

You can use: metamask://wc?uri=${uri} as a parameter in launchUrlString.

Rohitbagul003 commented 1 year ago

I used metamask://wc?uri=${uri} but the connect button doesnt gets shown @dawidope what should i do? also metamask is not working with eth sign saying:- JSON-RPC error -32000: eth_sign requires 32 byte message hash