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

Metamask on Android

Open edgiek-altrp opened this issue 2 years ago • 9 comments

Good day! While developing the application, our team encountered a problem with the metamask. The application connects to the metamask, and then users can perform transactions through the metamask. Our application works on a desktop, it also works on IOS, but on Android, when transactions are called, the metamask is not called. All code was written according to web3 documentation and metamask. My android device is Pixel 3a XL, version is 12. I have checked the settings you mentioned "Open Android settings , search 'default' and select "Choose Default apps' > "Choose Default apps" > Opening Links > scroll down to MetaMask and tap it > Supported Web addresses > check if links are selected or "verified/trusted" by default (most importantly metamask.app.link). If they are not, then check them/it" I am attaching a part of the code for the execution of which I expect a metamask call. The first connection is successful, but other requests to the metamask do not cause it. We work with the BSC-mainnet network What could be the problem?

   "gasPrice": web3.utils.toHex(gasPriceGwei * 1e9),
   "gas": web3.utils.toHex(gasLimit),
   "from": accounts[0],
   "to": this.USDTaddress,
   "data": await contract.methods.approve(this.contractAddress, newNumber).encodeABI(),
   "chainId": chainId
 };

     const hash = await provider.request({
       method: 'eth_sendTransaction',
       params: [
         {
           from: accounts[0],
           ...rawTransaction
         }
       ],
     })

edgiek-altrp avatar Jul 07 '22 09:07 edgiek-altrp

I have the same problem

vladislovev avatar Jul 07 '22 09:07 vladislovev

Hi, if you are building the app locally (debug version) or using the app from the store? If so which version?

andreahaku avatar Jul 07 '22 09:07 andreahaku

@andreahaku andreahaku I use latest version of metamask from Google Play Market

psychoducko avatar Jul 07 '22 10:07 psychoducko

@andreahaku andreahaku I use latest version of metamask from Google Play Market

How do you establish the connection? Wallet Connect?

andreahaku avatar Jul 07 '22 11:07 andreahaku

@andreahaku andreahaku I use latest version of metamask from Google Play Market

How do you establish the connection? Wallet Connect?

yes

psychoducko avatar Jul 07 '22 11:07 psychoducko

@andreahaku andreahaku I use latest version of metamask from Google Play Market

How do you establish the connection? Wallet Connect?

yes

And the connection is established. So at first it works isn't it?

andreahaku avatar Jul 07 '22 11:07 andreahaku

Can you please test connection and signing/transactions using WC example app here: https://example.walletconnect.org/

And another question... which network are you using? ETH mainnet or something else? Thanks a lot.

andreahaku avatar Jul 07 '22 12:07 andreahaku

@edgiek-altrp when I connect https://example.walletconnect.org/ with binance smart chain, I have a message telling me that this network is not supported

tommasini avatar Aug 11 '22 11:08 tommasini

@edgiek-altrp Can you confirm with the version 5.6.1 if the issue was fixed? Thanks for your reports!

tommasini avatar Sep 14 '22 18:09 tommasini

This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.

github-actions[bot] avatar Jun 16 '23 23:06 github-actions[bot]