wagmi
wagmi copied to clipboard
bug: Connector not found
Is there an existing issue for this?
- [X] I have searched the existing issues
Package Version
0.6.2
Current Behavior
I'm getting Connector not found
error everytime I try to connect to metamask within the Metamask App browser on Android
Expected Behavior
Expect connect dialog to show up in metamask
Steps To Reproduce
- Open Metamask App on Android
- Visit the codesandbox and press metamask button
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
https://codesandbox.io/s/wagmi-test-forked-v5qi39
Anything else?
No response
Also seeing this issue iOS, MetaMask 5.5.0
hey @kelokchan and @franzwarning I'm wondering if you handled this issue already. Did you?
I'm facing the same problem and as far as I can see, I think we will need to use something like rainbowkit
It has something to do with this issue
Opening the example (https://v5qi39.csb.app/) (note: not in the sandbox) worked on my MetaMask Mobile (Android).
Same issue here,
I have tried the link above on my android device it shows Metamask (unsupported) and Injected (unsupported).
phone is on android 13.
I also tested my nextjs app locally, and and running "wagmi": "^0.7.5".
Same behavior, when i click metamask or injected nothing happens. However, If I choose walletConnect and click connect it prompts my metamask mobile, as well as trustwallet.
issue exists still https://qomxdj.csb.app/
even after updating to 0.8
@paOol I'm not able to reproduce on web or iOS. What version of Android and MM Android app are you using?
MM v5.9.1 android 13
I can confirm issue, but I've noticed that it works without any problems within MetaMask browser. And it only appears on mobile, desktop is fine.
Is there a workaround, I want to send a transaction after connecting to the wallet using wagmi and also prompts this error
@youthinn this issue is from a while ago. Please open a new issue with a minimal reproducible example.
i got same issue but just logout and login wallet again to solve problem
The issue still persists. This error report was captured by Sentry and includes user device information. It appears to be specific to the Android platform.
My temporary workaround is to use window?.ethereum?.enable()
to ensure connectivity with the wallet on the Android version of Metamask.
There can be several reason :
maybe your key is wrong
if else statement can be working incorrectly for connection,
maybe your installed package's version is wrong.
And maybe u didnt set metamask or connecting wallet etc.
Is there any workaround about this issue please? Having the same problem on Android device saying "Connector not found"
![]()
The issue still persists. This error report was captured by Sentry and includes user device information. It appears to be specific to the Android platform.
My temporary workaround is to use
window?.ethereum?.enable()
to ensure connectivity with the wallet on the Android version of Metamask.
but do you have window.ethereum on Android Metamask App Browser? I do not have it at any point, always undefined
I am also facing the same issue in the browser its working just fine using the extension but on android it showing error
app-index.js:31 ConnectorNotFoundError: Connector not found at MetaMaskConnector.connect (webpack-internal:///(app-pages-browser)/./node_modules/@wagmi/connectors/dist/metaMask.js:88:15) at async connect (webpack-internal:///(app-pages-browser)/./node_modules/@wagmi/core/dist/chunk-TSH6VVF4.js:732:18)
I found how to solve the issue for my case.
FIX: Need to have https
protocol on your server so it works with mobile android, in my case it was deployed on netlify therefore
it has https and it worked.
so Metamask app injects window.ethereum
only on https websites as far as I understood
I found how to solve the issue for my case. FIX: Need to have
https
protocol on your server so it works with mobile android, in my case it was deployed on netlify therefore it has https and it worked.so Metamask app injects
window.ethereum
only on https websites as far as I understood
Sadly not in my case it, the protocol is https and still window.ethereum
is undefined
This issue has been locked since it has been closed for more than 14 days.
If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest wagmi version. If you have any other comments you can create a new discussion.