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.

Transactions failed to be sent to mobile device

See original GitHub issue

Randomly it seems like when a user is prompted to submit a tx - the tx is never sent to their connected device.

This is hard to replicate as in our dapp it works sometimes, and fails sometimes. Almost like its an internet issue (although its not, as I have a stable fast connection on both devices).

Replication is hard - but I’ve noticed:

If a user directly connects to walletconnect -> accepts in their mobile device -> then uses the dapp to submit a tx it almost never fails.

But when a user has already connected their wallet, and then they refresh the page or come back to it after a day or two, then once connecting again (not via their device just by clicking on walletconnect in web3modal) there is a good chance the transaction will never appear on their device.

I’ve posted in the discord with no real support, but here is the code I’m using for walletconnect and web3modal:

 const providerOptions = {
        walletconnect: {
          package: WalletConnectProvider, // required
          options: {
            infuraId: "a6xxxxxxxxxxxxxxx1", // required
          },
        },
        fortmatic: {
          package: Fortmatic, // required
          options: {
            key: "FORTMATIC_KEY", // required
          },
        },
      };
      const web3Modal = new Web3Modal({
        cacheProvider: false, // optional
        providerOptions, // required
      });
      const provider = await web3Modal.connect();
      store.dispatch({ type: "WEB3_CONNECTED", data: provider });
      this.props.handleCloseWalletModal();

The connection seems fine - in terms of when a user refreshes the page and presses walletconnect again - the web3 connection is on the correct network, and is able to create the instance of contract/estimate gas/present the tx data to web3.

It just fails hits the users device for them to submit, somewhat randomly.

Why would this happen? What aspect of our code/walletconnect would affect this? Is there something we can check/confirm is working that would make the tx fail to be sent to the user after reconnecting from page refresh?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
DefiOfThronescommented, Nov 13, 2020

Hello guys,

Any update of this problem ?

I’m able to reproduce it any time even on Uniswap.

  • Just connect your Metamask wallet on Uniswap with Wallet Connect (On a Android Device)
  • Turn off your internet connection (or your screen during 5 minutes)
  • Turn on your internet connection and wait few seconds
  • Try to send a transaction with Metamask
  • Metamask opens but no transaction confirmation popup appears
  • The only way to make it works again is to kill all apps then try to reconnect with Wallet connect several times and it ended up working.

It’s a really annoying problem even for the biggest dApps like Uniswap! This should be a priority in your backlog guys !

0reactions
finessevanescommented, Dec 6, 2022

@VexyCats , @DefiOfThrones , @auuunya are you still experiencing the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems with tap to pay transactions - Google Wallet Help
If you can't complete a contactless payment, use these steps to help you solve the problem. Step 1: Check that your app &...
Read more >
If you can't send or receive money with Apple Cash
Try to send money · Restart your device. · See if you, or the recipient, need to verify your identity. · Make sure...
Read more >
Google Pay transaction failed? Here is how to troubleshoot ...
Google Pay transaction failed? Here is how to troubleshoot and fix · 1. Send a smaller amount of money. · 2. Use a...
Read more >
Failed Transactions
The Failed Transactions screen displays and manages transactions sent from the mobile applications that cause an error on processing.
Read more >
How do I clear a bank error update message from the ...
You can reset your QuickBooks Online (QBO) mobile app data, @LDFoundation86. This way, you're able to clear a bank error update message from ......
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