Web3Auth Flutter SDK 1.2.0 causes app crash when closing page in weak or no network

Hello, Web3Auth team and community. I am a Flutter developer who uses Web3Auth as a social login. I really like the idea and functionality of Web3Auth, which allows me to provide my users with passwordless, non-custodial authentication services, while supporting various login methods, including OAuth (Google, Twitter, Discord, etc.) and different wallets . However, I recently encountered a very serious bug when using Web3Auth Flutter SDK 1.2.0, which causes my app to crash in weak or no network conditions. I hope to report this problem to you through this post and seek a solution.

When I use Web3Auth as a social login, if my network connection is unstable or disconnected, clicking the close button in the upper left corner of the page during the Web3Auth page loading process will cause my app to crash. This bug affects the user experience very much, because users may encounter unstable network conditions at any time and may want to cancel the login operation. If doing so will cause the app to crash every time, then users will lose confidence in my app and may uninstall it.

Here are the steps to reproduce:

  1. Open the app and click to use Web3Auth to log in

  2. Choose Google as the login method

  3. Disconnect the network connection during the Web3Auth page loading process

  4. Click the close button in the upper left corner of the page

  5. Observe whether the app crashes

Problem environment:

  • Flutter sdk version: 1.2.0
  • Platform: Android 13
2 Likes

Hey @iota.9star, try latest version of flutter sdk i.e. 1.3.0

I did not find version 1.3.0 on pub.dev.

https://pub.dev/packages/web3auth_flutter

I ran into a problem similar to yours. Has been unable to resolve, and now the whole development is stuck.
Would you update it if you handle it?

Released on pub.dev.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.