Non ethereum enabled browser

Hey, Iā€™ve been trying to get my personal Dapp working through Moralis but Iā€™ve come across a problem.

When trying to login through Trust Wallet or Metamask on my Android phone I get the message ā€œNon ethereum enabled browserā€.

    async function login(provider) {
        try {
            let web3;
            if (provider == 'walletconnect') {
                const user = await Moralis.authenticate({ provider: provider });
                web3 = await Moralis.enableWeb3({ provider });
            } else {
                const user = await Moralis.authenticate();
                web3 = await Moralis.enableWeb3();
            }
            alert("Logged In!");
        }
        catch (ex) {
            alert(ex.message);
        }
    }

Anyone has an idea what Iā€™m doing wrong here? Itā€™s working fine on a PC with either wallet connect or metamask.

what do you mean by that?

If I use the Dapp browser in Trust Wallet (or metamask) I get this error. But if I use metamask on a PC it works fine.

Iā€™ve tested the same code on a barebone site deployed on Vercel. Itā€™s actually working there.

Does anyone know if domain and SSL are required for the Dapp browser in TW/Meta to work?

I heard that SSL is required for wallet connect to work

have u fixed it for mobile?

Yeah it was not having SSL that caused it.

can u please elaborate how u fixed i coudnā€™t get it.

I hosted it with an SSL certificate on Vercel and that worked.