Android login getting stuck on browser

When asking for help in this category, please make sure to provide the following details:

  • buildToolsVersion: “33.0.0”
  • minSdkVersion: 21
  • compileSdkVersion: 33
  • targetSdkVersion: 31
  • React Native version: 0.72.3
  • Platform: Android

code:
const chainConfig = {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: ‘0x1’,
rpcTarget: ‘Build on Ethereum With Instant RPC Endpoint’,
displayName: ‘mainnet’,
blockExplorer: ‘https://etherscan.io/’,
ticker: ‘ETH’,
tickerName: ‘Ethereum’,
};

const ethereumPrivateKeyProvider = new EthereumPrivateKeyProvider({
config: {
chainConfig,
},
});

    if (!web3auth.ready) {
      setShowLoader(false);
      // console.log('Web3auth not initialized');
      return;
    }

    // console.log('logging in');
    // IMP START - Login
    await web3auth.login({
      loginProvider: LOGIN_PROVIDER.GOOGLE,
      // IMP START - Whitelist bundle ID
      redirectUrl: resolvedRedirectUrl,
    });

Hey @rahul,

Could you please provide the specific SDK version you’re working with? Additionally, a bit more detail about the behavior you’re encountering would be really helpful. Considering you’re utilizing one of our quickstart examples—which is fully operational within our documentation—my initial thought leans towards potential React Native configuration issues.

Understanding these details will greatly assist in diagnosing and resolving the issue more efficiently. Looking forward to your response.

Hey @maharshi
I’m using sdk version 34.

When I try to login with google it open the google accounts and allow me to select any one account for authentication, but after selecting no response from the server. And the ui gets stuck at loading screen. But it is working fine on ios.

I see, @rahul. To assist you better, could you specify the exact name and version of the Web3Auth SDK you’re currently using? Additionally, capturing some debug logs from your Android device would be incredibly helpful for diagnosing the problem more accurately.

You can find a comprehensive guide on how to debug Android devices and collect the necessary logs here. This step is crucial for understanding what might be causing the issue at a deeper level.

Looking forward to your response and the logs. This information will greatly assist in pinpointing and resolving the issue more efficiently.