question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dapps cannot connect my wallet by using `BrowserViewController` with a URL.

See original GitHub issue

When I entered a dapp page with BrowserViewController, it cannot connect my wallet automatically.

https://github.com/skywinder/web3swift/blob/develop/Example/web3swiftBrowser/web3swiftBrowser/ViewController.swift

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

@skywinder

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
skywindercommented, Aug 17, 2021

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. 🙌

2reactions
AlleniCodecommented, Aug 12, 2021

@veerChauhan Hello, I have tried,still the same issue. 😂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found