WalletConnectSwift-Example icon indicating copy to clipboard operation
WalletConnectSwift-Example copied to clipboard

Universal link

Open siavkuong opened this issue 2 years ago • 3 comments

Hey guys, I'm trying to use the example as a basis and use universal link to call Metamask. using let deepLinkUrl = "https://metamask.app.link/wc?uri=(connectionUrl)"

will launch metamask but the connect popup won't appear. Any hint on how to make it appear?

Thanks

siavkuong avatar Jun 10 '22 15:06 siavkuong

running into a similar issue, can confirm it doesn't work for Rainbow or Trust Wallet either

cemski avatar Jun 20 '22 12:06 cemski

Linking the issue related to this on the MetaMask repo https://github.com/MetaMask/metamask-mobile/issues/3874

robin-on-git avatar Jul 26 '22 14:07 robin-on-git

you need encode connectionUrl yourself

let deepLinkUrl = "https://metamask.app.link/wc?uri=\(connectionUrl.addingPercentEncoding(withAllowedCharacters: .alphanumerics)!)"

Before

wc:C8FBB1B6-67CD-4BE0-8E51-C3FB95495628@1?bridge=https%3A%2F%2Fbridge.walletconnect.org&key=999e80c89b9ee3990108f4ccc239600d599e373db25a520c053a734d5e10280b

After

wc%3AC8FBB1B6%2D67CD%2D4BE0%2D8E51%2DC3FB95495628%401%3Fbridge%3Dhttps%253A%252F%252Fbridge%2Ewalletconnect%2Eorg%26key%3D999e80c89b9ee3990108f4ccc239600d599e373db25a520c053a734d5e10280b

WingCH avatar Nov 28 '22 08:11 WingCH