Deeplinking to connect to Mobile Wallets using Wallet Connect

13,873

Hi finally I solved using below link:

The bidge must be https://bridge.walletconnect.org

Session.Config(UUID.randomUUID().toString(), "https://bridge.walletconnect.org", key)

from wallet connect sample

Share:
13,873
Admin
Author by

Admin

Updated on June 28, 2022

Comments

  • Admin
    Admin almost 2 years

    I am trying to create a mobile application that can connect to mobile wallets (Metamask and TrustWallet) via the WalletConnect Protocol. For reference, what I am trying to achieve would be something like what opensea and rarible mobile apps are doing - if you click on the connect to metamask button the app will take you to the metamask app (via deeplink) and you can approve the connection from the wallet.

    I can generate a uri using wallet connect that will work if you scan it via QR Code but when I try to use it as deeplink, it will take me to the metamask application but not open the "would you like to connect" pop up. Here's an example of the deeplink im using:

    metamask://wc?uri=wc:87dc2f44-42ff-4206-81bf-f2685730759d@1?bridge=https%3A%2F%2Fp.bridge.walletconnect.org&key=bbd16a77194580dc2c4b8caf02fd5d269bf9c0efdb7fbf91673bc3a7eadf0c25.

    Just wondering if anyone has accomplished this and can share some insights

  • samuel zaffran
    samuel zaffran over 2 years
    Hey, can you please share the piece of code you use to have the wanted result. I have the same problem. Thank you.
  • samuel zaffran
    samuel zaffran over 2 years
    Ok ill try that thank you !
  • Erfan Eghterafi
    Erfan Eghterafi over 2 years
    I just update the answer
  • samuel zaffran
    samuel zaffran over 2 years
    But did you clone the project ? Because when i do, it doesn't find any module..
  • Erfan Eghterafi
    Erfan Eghterafi over 2 years
    I download zip file
  • samuel zaffran
    samuel zaffran over 2 years
    Ok thx ill try this way
  • Jason
    Jason over 2 years
    Do you also have a solution for iOS? Replacing the bridgeUrl with "bridge.walletconnect.org" still does not show the sign message.