Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to connect with metamask default #94

Open
ShallowGreen opened this issue Jan 6, 2023 · 3 comments
Open

how to connect with metamask default #94

ShallowGreen opened this issue Jan 6, 2023 · 3 comments

Comments

@ShallowGreen
Copy link

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
Copy link
Contributor

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
Copy link

dawidope commented Feb 24, 2023

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

@Rohitbagul003
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@dawidope @HaoCherHong @ShallowGreen @Rohitbagul003 and others