在移动上的metamask的deeplink in not not
我在移动设备上与MetAmask有一些连接问题。它在桌面上可以罚款:
const _provider = new ethers.providers.Web3Provider(window.ethereum);
store.provider = _provider;
但是,当涉及到移动设备时,显然应该使用深层链接。我像以下内容一样写了它:
const dappUrl = 'xxx';
const metamaskAppDeepLink = 'https://metamask.app.link/dapp/' + dappUrl;
问题是,每当我在移动设备上单击 Connect Wallet 时,它就会按预期打开MetAmask,但是当我单击MM中的“连接钱包”时,将我转发到App Store而不是连接。 我试图用多个链(多边形和以太坊)进行操作,但是结果是相同的。
I'm having some connection issues with Metamask on mobile. It's connecting on desktop fine with this:
const _provider = new ethers.providers.Web3Provider(window.ethereum);
store.provider = _provider;
But, when it comes to the mobile, apparently a deep link should be used. I wrote it like the following:
const dappUrl = 'xxx';
const metamaskAppDeepLink = 'https://metamask.app.link/dapp/' + dappUrl;
The problem is that whenever I click on the connect wallet on mobile, it opens first Metamask as expected, but when I click 'connect wallet' in MM, it forwards me to the app store instead of connecting.
I tried to do it with multiple chains (polygon and ethereum) and yet, the result is the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试再次从应用商店中删除MetAmask并重新安装。 AFAIK是唯一的方法。
请记住,您的钱包将消失,因此您必须输入相同的种子短语或私钥才能检索它们。
Try removing Metamask and re-installing from the App Store again. AFAIK that's the only way.
Remember that your wallets will be gone, so you have to enter the same seed phrase or private keys to retrieve them.