Connecting to MetaMask rarely works
Using bridgeURL - https://safe-walletconnect.gnosis.io and metamask deep link https://metamask.app.link/wc?uri=wc yet MetaMask mobile rarely opens the prompt to allow permission to connect. It seems to be flaky and works less than it doesn't. Whats going on
Same here. I don't know why the example ios app doesn't work whereas android example apps work fine. I think we must request the developer to publish an updated code so that our issues are resolved instead of transferring to other apps code or redirecting to other threads. I am stuck at same from last week and the response everytime is to look : https://github.com/gnosis/safe-ios/blob/40a50dc8e6b3c007c8b3279cab0c202bef06d4a1/Multisig/UI/WalletConnect/WalletConnectServerController.swift
Same here. I don't know why the example ios app doesn't work whereas android example apps work fine. I think we must request the developer to publish an updated code so that our issues are resolved instead of transferring to other apps code or redirecting to other threads. I am stuck at same from last week and the response everytime is to look : https://github.com/gnosis/safe-ios/blob/40a50dc8e6b3c007c8b3279cab0c202bef06d4a1/Multisig/UI/WalletConnect/WalletConnectServerController.swift
This might actually be a bug with metamask as I noticed it stopped letting me view WalletConnect sessions within the app settings without crashing out. Resintalling and trying to connect has seemed to fix it for now? Fwiw walletconnect + rainbow works just fine
Can you share the code screenshot or something?
Same here. I don't know why the example ios app doesn't work whereas android example apps work fine. I think we must request the developer to publish an updated code so that our issues are resolved instead of transferring to other apps code or redirecting to other threads. I am stuck at same from last week and the response everytime is to look : https://github.com/gnosis/safe-ios/blob/40a50dc8e6b3c007c8b3279cab0c202bef06d4a1/Multisig/UI/WalletConnect/WalletConnectServerController.swift
This might actually be a bug with metamask as I noticed it stopped letting me view WalletConnect sessions within the app settings without crashing out. Resintalling and trying to connect has seemed to fix it for now? Fwiw walletconnect + rainbow works just fine
I do think it is some MetaMask issue. Trust wallet also works very well
Hey do you have news about that?
Cannot connect with MetaMask either. WIth metamask deep link https://metamask.app.link/ and bridge url https://c.bridge.walletconnect.org/, I can rarely see a prompt from metamask app.
any solutions here?
I know why the authentication popup in metamask isn't show. Because of deeplink format. in the example. they're using wcUrl.absoluteString let's take a look:
public var absoluteString: String {
let bridge = bridgeURL.absoluteString.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? ""
return "wc:\(topic)@\(version)?bridge=\(bridge)&key=\(key)"
}
this function just encodes bridgeURL and I compared absoluteString to deeplink in WalletConnect popup in browser that encoded whole data so I have to add some encoding actions. Specifically, I encode 2 characters "=" and "&"
let connectionUrl = walletConnect.connect()
let _encodeURL = connectionUrl.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? ""
let _end2 = _encodeURL.replacingOccurrences(of: "=", with: "%3D").replacingOccurrences(of: "&", with: "%26")
let metamaskLink = "https://metamask.app.link/wc?uri="
let deepLinkUrl = "\(metamaskLink)\(_end2)"
....
Now, I can see an authentication popup in metamask all the time
absoluteString
Thanks @hungMta, your change does indeed work and I am able to now connect to MetaMask consistently. For reference, this is a code change on my side: https://github.com/kohlivarun5/nfty/pull/246/files#diff-fe7bd9e77510ff56365962e715a1a4d1c2d9183048a39c050b309387d9da648fR92
@mazenkourouche maybe the problem is your bridge server. You can try https://safe-walletconnect.gnosis.io/. It's worked for me
I can't seem to get the sample to work at all. I have been trying for a while. It bounces to Metamask but I am not getting asked to connect..
it's like the connection was broke since the last metamaks app update. can you any confirm that ?
absoluteString
Thanks @hungMta, your change does indeed work and I am able to now connect to MetaMask consistently. For reference, this is a code change on my side: https://github.com/kohlivarun5/nfty/pull/246/files#diff-fe7bd9e77510ff56365962e715a1a4d1c2d9183048a39c050b309387d9da648fR92
Looks like you have a pretty good setup for your wallets. I'm going to follow your example.