Coder Social home page Coder Social logo

mobile-provider's Introduction

@metamask/mobile-provider

This package generates the JavaScript code that's injected on every web page when using MetaMask Mobile.

It includes @metamask/inpage-provider as a dependencies and it's intended to be up to date with the latest extension implementation.

To build this package you can run:

yarn && yarn build

mobile-provider's People

Contributors

adonesky1 avatar andrepimenta avatar brunobar79 avatar dependabot[bot] avatar estebanmino avatar metamaskbot avatar rekmarks avatar whymarrh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mobile-provider's Issues

MetamaskContentscript - lost connection to MetaMask Background Multiplex

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.

Hi team, can you send a document or Example ??

I have tried using your library. After injecting dist / index.js file into dapp, I received a message with method "wallet_sendDomainMetadata". I don't know how to declare rpcUrl, chainId, selectAddress ... Can you send a document or Example ?? Thank!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.