Replies: 1 comment
-
metamask/detect-provider README said.
But MetaMask/detect-provider#38 (comment) gave different answer.
It seems that using @metamask/detect-provider alone does not solve the mobile problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The MetaMaskConnector detect provider from
window.ethereum
. (code)This method has the problem that the provider can't be detected when use mobile.
Because, the connecter detect providers synchronously, but the MetaMask mobile provider is injected asynchronously.
Therefore, I would like to propose the use of @metamask/detect-provider.(recommended In docs.metamask.io)
It works out of the box in any modern browser, for synchronously and asynchronously injected providers.
ref: https://github.com/MetaMask/detect-provider#synchronous-and-asynchronous-injection
So I believe that we can also support the MetaMask mobile provider that is injected asynchronously and solve the problem.
Beta Was this translation helpful? Give feedback.
All reactions