Dapps cannot connect my wallet by using `BrowserViewController` with a URL.
See original GitHub issueWhen I entered a dapp page with BrowserViewController
, it cannot connect my wallet automatically.
class DAppsViewController: BrowserViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
webView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(webView)
NSLayoutConstraint.activate([
webView.topAnchor.constraint(equalTo: view.topAnchor),
webView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
webView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
webView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
])
var urlToOpen = "https://1inch.exchange/"
urlToOpen = "https://app.compound.finance"
urlToOpen = "https://app.uniswap.org"
webView.load(URLRequest(url: URL(string: urlToOpen)!))
do {
let keystoreManager = KeystoreManager(["My EthereumKeystoreV3"])
let web3 = Web3.InfuraMainnetWeb3()
web3.addKeystoreManager(keystoreManager)
self.registerBridges(for: web3)
} catch {
print(error)
}
}
}
Same issues:
https://github.com/skywinder/web3swift/issues/338 https://github.com/skywinder/web3swift/issues/337 https://github.com/skywinder/web3swift/issues/321 https://github.com/skywinder/web3swift/issues/304 https://github.com/skywinder/web3swift/issues/303
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Dapps cannot connect my wallet by using ... - GitHub
When I entered a dapp page with BrowserViewController, it cannot connect my wallet automatically.
Read more >How to Connect DApp to Trust Wallet (New DApp ... - YouTube
In this video, I show you how to connect your Trust Wallet to PancakeSwap & other popular DApps using WalletConnect. This is the...
Read more >How to Enable DApp Browser on Trust Wallet?
Here are the steps to help you enable the dApp browser on the Trust crypto wallet app for iOS devices.
Read more >Web3Swift Bounties - Gitcoin
Dapps cannot connect my wallet by using `BrowserViewController` with a URL. ... How to use decodeLog? ... Gitcoin is a platform where you...
Read more >Unable to connect Metamask iOS app via WalletConnect
I've just managed to sort the whole thing out. Metamask actually stopped supporting the bridge for WalletConnect https://safe-walletconnect.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here you go, here is a bounty: https://gitcoin.co/issue/skywinder/web3swift/357/100026264 - I’m open to adjusting bounty if it takes time. Let me know if someone is willing to help with this. 🙌
@veerChauhan Hello, I have tried,still the same issue. 😂