token-core-android icon indicating copy to clipboard operation
token-core-android copied to clipboard

imtoken android 2.4.2 dapp browser `window.ethereum` injection missing

Open BigMurry opened this issue 5 years ago • 2 comments

Not sure this is the right place to raise an issue for Imtoken wallet. If there is another place, which is more suitable for this issue, please let me know.

My dapp website works flawless in all other mainstream dapp browsers (Metamask, Trust wallet, Coinbase wallet, Opera Mobile, Math Wallet, even imToken before 2.4.2), but in Imtoken 2.4.2 when I press the fresh button on the top right corner, the window.ethereum or window.imToken will be undefined, which is checked by using the vconsole.

But when I go back and enter my dapp url directly in the address bar, window.ethereum and window.imImtoken works fine again.

Thanks.

BigMurry avatar May 07 '19 11:05 BigMurry

We did do some changes in web3 injection in recent versions. Could you provide the URL of your website?

kaichen avatar May 08 '19 08:05 kaichen

Sure. This is the Dapp URL.

BigMurry avatar May 08 '19 10:05 BigMurry