I have build a webapp to MINT our ERC721 token using Webflow. It works fine on desktop but the window.ethereum is never injected on mobile (browsers & metamask application) Here is my code to detect the provider:

  detectEthereumProvider().then((result) => {
    if (result) {
      web3 = new Web3(result);
    } else {
  }).catch((error) => { console.log(error); });

On mobile setupOnboarding(); is always called as window.ethereum doesn't seem to be injected. Mobile is Android 10 Huawei P30. Tested Chrome, Android & Metamask in-app browser. There is no CSP set for the website, CORS is set to strict-origin-when-cross-origin (cannot change it).

I've tested the same mobile on pancakeswap, it works in Metamask in-app browser but not Chrome (provider not found when clicking Metamask).

Any help would be appreciated I've been stuck on this :(

  • I am doing something similar but I cannot connect my token with metamask from the mobile, can you help me please
    – juya2006
    Commented Feb 9, 2022 at 6:02
  • Did You Resolve ? You show how to make it work im stuck on that too. Thanks a lot ! Commented May 5, 2022 at 22:10

1 Answer 1


The website was behind temporary Webflow auth to keep it from prying eyes, so just dropped the auth and it worked :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.