Iam connecting to metamask and sending transactions(trc20) using my desktop web browser. Its working perfectly. But in mobile, metamask browser or native android browsers is not detecting metamask or any window.ethereum object. This is the basic code Im using,
if (typeof window.ethereum !== 'undefined') {
console.log('Wallet is installed!');
} else {
alert('Metamask Wallet is not installed!');
return
}
I'm getting wallet not installed message.
I tried many other ways from various other threads and still not able to interact with metamask.
I also checked the deeplinking part but no help.
When I initialise like,
const web3 = new Web3(window.ethereum);
I'm able to do,
const value = web3.utils.toWei(amount, 'ether')
It gives me converted value.
But still window.ethereum is showing as undefined
Any help is appreciated :)
detectEthereumProvider()