[Unity - Android] Slow opening web browser and no callback after complete login

  • SDK Version:2.1.0
  • Platform: Android
    Hello, I am implementing login system for unity project with web3Auth unity sdk. I tried to test the login on the editor, everything worked. After pressing login, the browser opened and I logged in with google. After successful login, the browser returned data to the unity editor to execute the onlogin function.
    Although sometimes it takes 3-5 seconds for the browser to pop up, it’s still acceptable.

I perform apk build and launch the application on android device.
After I clicked login, the time it took for the browser to appear was quite long, >10 seconds. After completing the login on the browser, I do not see a callback from the browser returning data to my application. Although I have set up redirect_url according to the instructions Window > Web3Auth > Deep Link Generator.

Here is my initialization code:

login code:

and handle callback:

Is there something wrong with my setup?

@truongnt Welcome Aboard!

Can you please paste your Initialization code, login code and callback information as text as the links you provided are not accessible?

Sorry, I fixed image on my post. Please help me to check. Thanks

Hi @truongnt, pls try running example attached with sdk itself. Its working fine at my end in android. Let me know if it works or not.