consenlabs / token-core-android

a blockchain private key management library on android
Apache License 2.0
648 stars 198 forks source link

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

Open BigMurry opened 5 years ago

BigMurry commented 5 years ago

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.

kaichen commented 5 years ago

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

BigMurry commented 5 years ago

Sure. This is the Dapp URL.