You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling sdk.connect(), the MetaMask wallet connection prompt does not appear.
provider is not set, which prevents addEthereumChain() from working properly.
Works fine on desktop browsers
When running the same code on a desktop browser, the MetaMask wallet connection request works as expected.
Tried solutions:
Tested on different mobile browsers (Chrome, Firefox)
Tried running the code inside the MetaMask mobile app browser
Called sdk.getProvider() before sdk.connect()
Questions:
Why does sdk.connect() not work on mobile?
How can I properly request MetaMask wallet permissions on mobile?
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
No response
The text was updated successfully, but these errors were encountered:
SDK
Web
Provide environment information
WEB MOBILE
MetaMask SDK Version
https://c0f4f41c-2f55-4863-921b-sdk-docs.github.io/cdn/metamask-sdk.js
MetaMask Mobile app Version
https://c0f4f41c-2f55-4863-921b-sdk-docs.github.io/cdn/metamask-sdk.js
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
I created the following index.html file to request MetaMask wallet permission, but it does not work on mobile browsers.
``
<title>MetaMask Test</title> <script src="https://c0f4f41c-2f55-4863-921b-sdk-docs.github.io/cdn/metamask-sdk.js"></script> Connect ADD ETHEREUM CHAIN``
Expected Behavior
MetaMask does not open on mobile browsers
When calling sdk.connect(), the MetaMask wallet connection prompt does not appear.
provider is not set, which prevents addEthereumChain() from working properly.
Works fine on desktop browsers
When running the same code on a desktop browser, the MetaMask wallet connection request works as expected.
Tried solutions:
Tested on different mobile browsers (Chrome, Firefox)
Tried running the code inside the MetaMask mobile app browser
Called sdk.getProvider() before sdk.connect()
Questions:
Why does sdk.connect() not work on mobile?
How can I properly request MetaMask wallet permissions on mobile?
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
No response
The text was updated successfully, but these errors were encountered: