Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

285
Visualizações
Connect Metamask in Mobile using Metamask application from any mobile web browser. How that possible? (Magento 2)

I am trying Metamask connect on mobile Metamask application. But i am not getting properly solutions for that. It's working fine in Web browser Metamask Extension.

The following code used for Web browser in Magento 2. But, not working with Mobile application. I am trying also using detectEthereumProvider. But, it's also not working with mobile Metamask. I had also used Provide window ethereum. But, it's also not working.

require([
    'jquery',
    'Magento_Theme/js/view/messages',
    'mage/url',
    'web3'
    ], function($,messages,url,web3){
        let accounts;
        let contract;
        let contractAddress;

        const getData  = async () => {
            var web3 = new Web3(window.ethereum); /* initialize web3 object */
            const { ethereum } = window;

            var web3 = new Web3(window.ethereum);
            if (typeof window.ethereum !== 'undefined') {
                console.log('MetaMask is installed!');
            }
        }

        getData();
    }
);

I am also using vanilla js using wallet connect with Web3model but also not working. Because, It's said Web3Modal NPM Package must be use for Web3model but it's possible on magento 2?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda