Git Product home page Git Product logo

Comments (6)

mcmire avatar mcmire commented on June 3, 2024 1

Would it make more sense if we changed the wording to something like this?

The MetaMask extension provider is synchronously injected, while the MetaMask mobile provider (only available when accessing a dapp inside of the mobile app) is asynchronously injected.

from detect-provider.

uji avatar uji commented on June 3, 2024

@mcmire
It looks good. 👍

[nit]
I think you may want to write that deeplink is recommended as a countermeasure in case the presence of window.ethereum cannot be detected.

from detect-provider.

mcmire avatar mcmire commented on June 3, 2024

@uji We could certainly remind people about deeplinking as a way of bypassing the need to detect the provider. That would assume your dapp is so simple that you don't need to connect to the user's wallet at all -- you just want to spawn an action in MetaMask, such as a payment request. Is that use case what you had in mind?

from detect-provider.

uji avatar uji commented on June 3, 2024

@mcmire I was thinking of use cases that connect to the user's wallet.
In this case, I thought I needed to transition to the browser inside of the mobile app using deeplink.
Is this a correct understanding?

from detect-provider.

mcmire avatar mcmire commented on June 3, 2024

@uji Hmm, I'm not sure I'm quite understanding. Are you wanting to link from somewhere outside of the mobile app to your dapp inside of the mobile app?

from detect-provider.

uji avatar uji commented on June 3, 2024

@mcmire
I want to use MetaMask Ethereum provider in a Dapp running in browsers outside of the MetaMask mobile app(such as Google chrome).
windows.ethereum isn't injected those browsers, so I thought I needed to use deeplink to transition to the MetaMask mobile app browser.

from detect-provider.

Related Issues (20)

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.