metamask-mobile
metamask-mobile copied to clipboard
Metamask on Android
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
}
],
})
I have the same problem
Hi, if you are building the app locally (debug version) or using the app from the store? If so which version?
@andreahaku andreahaku I use latest version of metamask from Google Play Market
@andreahaku andreahaku I use latest version of metamask from Google Play Market
How do you establish the connection? Wallet Connect?
@andreahaku andreahaku I use latest version of metamask from Google Play Market
How do you establish the connection? Wallet Connect?
yes
@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?
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.
@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
@edgiek-altrp Can you confirm with the version 5.6.1 if the issue was fixed? Thanks for your reports!
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.