MetaMask / mobile-provider

An Ethereum provider, as injected into websites by MetaMask Mobile
ISC License
38 stars 42 forks source link

MetamaskContentscript - lost connection to MetaMask Background Multiplex #75

Open YannMarti opened 2 years ago

YannMarti commented 2 years ago

I injected index.js in my inapWebview on my wallet, but im getting this error:

I/flutter ( 4953): MetamaskContentscript - lost connection to MetaMask Background Multiplex I/flutter ( 4953): Error: MobilePortStream - disconnected I/flutter ( 4953): at c.write (:12:9414) I/flutter ( 4953): at w (:8:118728) I/flutter ( 4953): at :8:121906 I/flutter ( 4953): at c.m.write (:8:121933) I/flutter ( 4953): at c.g (:8:79743) I/flutter ( 4953): at c.s.emit (:1:8010) I/flutter ( 4953): at (:8:74564) I/flutter ( 4953): at v (:8:74379) I/flutter ( 4953): at c.w.push (:8:75190)

It is written in dart, but i can inject javascript into the inappbrowser. My question is, what do i have to do once i have injected index.js? Because im not sure if this error is becaus im missing something or because of something else. Even an explanation on how you would do it in javascript would be helpful. I tried to look at the code of metmask-mobile, but didnt really make any progress, as i am not too proficient with js.

Mavanm599 commented 2 years ago

I injected index.js in my inapWebview on my wallet, but im getting this error:

I/flutter ( 4953): MetamaskContentscript - lost connection to MetaMask Background Multiplex I/flutter ( 4953): Error: MobilePortStream - disconnected I/flutter ( 4953): at c.write (:12:9414) I/flutter ( 4953): at w (:8:118728) I/flutter ( 4953): at :8:121906 I/flutter ( 4953): at c.m.write (:8:121933) I/flutter ( 4953): at c.g (:8:79743) I/flutter ( 4953): at c.s.emit (:1:8010) I/flutter ( 4953): at (:8:74564) I/flutter ( 4953): at v (:8:74379) I/flutter ( 4953): at c.w.push (:8:75190)

It is written in dart, but i can inject javascript into the inappbrowser. My question is, what do i have to do once i have injected index.js? Because im not sure if this error is becaus im missing something or because of something else. Even an explanation on how you would do it in javascript would be helpful. I tried to look at the code of metmask-mobile, but didnt really make any progress, as i am not too proficient with js.

blog

Mavanm599 commented 2 years ago

[Network]#74 #75