metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

Metamask iOS doesn't handle deep link parameters (WalletConnect v2)

Open maltsevoff opened this issue 3 years ago • 13 comments

Description

On Metamask iOS version 7.0.1 doesn't work with WalletConnect Auth protocol and not respond to any redirected links. When will you turn on wc v2 support on iOS?

maltsevoff avatar Jun 26 '23 11:06 maltsevoff

Any update on this issue?

pantaovay avatar Jul 03 '23 09:07 pantaovay

Yup completely broken. Guess it's time to switch to an alternative.

iPaulPro avatar Jul 04 '23 17:07 iPaulPro

Still doesn’t work.

I’ll describe steps to reproduce below.

versions: WalletConnectSwiftV2 - 1.6.8 MetaMask iOS - 7.0.1

Short code example to reproduce the issue. I create pair uri and pass it to metamask deep link as in docs. Then redirect to metamask. And nothing happens. Metamask opens but doesn’t respond to passed parameters. No error messages, no dialog screens, nothing.

import Auth

let pairUri = try await Pair.instance.create()
self.pairUri = pairUri
try await Auth.instance.request(params, topic: pairUri.topic)

"metamask://wc?uri=\(pairUri.deeplinkUri)"

UIApplication.shared.open(url)

Also tried 
"https://metamask.app.link", nothing changed.

Other wallets like Trust, Zeroin, Rainbow work fine with handling links. Metamask app works fine with scanning QR codes but not with handling links.

maltsevoff avatar Jul 05 '23 09:07 maltsevoff

@anaamolnar any updates about this?

maltsevoff avatar Jul 05 '23 09:07 maltsevoff

Still doesn’t work.

I’ll describe below steps to reproduce.

versions: WalletConnectSwiftV2 - 1.6.8 MetaMask iOS - 7.0.1

Short code example to reproduce the issue. I create pair uri and pass it to metamask deep link as in docs. Then redirect to metamask. And nothing happens. Metamask opens but doesn’t respond to passed parameters. No error messages, no dialog screens, nothing.

import Auth

let pairUri = try await Pair.instance.create()
self.pairUri = pairUri
try await Auth.instance.request(params, topic: pairUri.topic)

"metamask://wc?uri=\(pairUri.deeplinkUri)"

UIApplication.shared.open(url)

Also tried 
"https://metamask.app.link", nothing changed.

Other wallets like Trust, Zeroin, Rainbow work fine with handling links. Metamask app works fine with scanning QR codes but not with handling links.

Hello guys, any news/updates/solutions? Thanks!

alexanderkhitev avatar Jul 05 '23 10:07 alexanderkhitev

Can you try my PR? https://github.com/MetaMask/metamask-mobile/pull/6564

SmartArray avatar Jul 07 '23 07:07 SmartArray

Hi, guys, when are you will solve this problem?.......

dibuenio avatar Jul 07 '23 11:07 dibuenio

This is not issue with Metamask or WalletConnect, it is a side effect of the iOS operating system. WalletConnect explains how to deal with the issue here: https://docs.walletconnect.com/2.0/ios/guides/mobile-linking#ios-app-link-constraints

equalogix avatar Jul 11 '23 17:07 equalogix

This is not issue with Metamask or WalletConnect, it is a side effect of the iOS operating system. WalletConnect explains how to deal with the issue here:

https://docs.walletconnect.com/2.0/ios/guides/mobile-linking#ios-app-link-constraints

This issue is not related to the doc you mentioned. It's purly metamask's bug

pantaovay avatar Jul 12 '23 00:07 pantaovay

This is not issue with Metamask or WalletConnect, it is a side effect of the iOS operating system. WalletConnect explains how to deal with the issue here: https://docs.walletconnect.com/2.0/ios/guides/mobile-linking#ios-app-link-constraints

This is a MetaMask error only, just check code above which strictly follows wallet connect's docs.

maltsevoff avatar Jul 12 '23 07:07 maltsevoff

Hi, MetaMask supports a subset of WCv2 features and Auth protocol is not part of it. That's why it's not working. Thanks for reporting.

andreahaku avatar Jul 21 '23 10:07 andreahaku

Hi @andreahaku, are there any plans for MetaMask to support this in the near future?

glitch-txs avatar Jul 26 '23 11:07 glitch-txs

This is pretty disappointing

marctatham avatar Apr 15 '24 09:04 marctatham