Cannot detect close button on android flutter

Cannot detect close button function on android, ios can works fine

@chaulinh.se.it Thanks for your recent post.

Is this your only code or do you have the entire implementation code to share?

@vjgee
This is full code for my service

Hey @chaulinh.se.it, can you please clarify what do you mean by cannot detect close button? Can you post screenshot? That would be really helpful to resolve the issue.

@Ayush i meant, when click this button, when processing web3auth, cannot detect closed on android

We don’t manage the icons, and on taps for the browser window. I tried locally on multiple devices, not able to reproduce. Which device are you using? Can you share the information of your device like OS, device model? Meanwhile, can you try running the application on any other Android device or emulator and see if the issue persists?

@Ayush
as you mentioned, your team doesn’t manage the close icon, so how to detect you will cancel process or still keep process?, on ios when exiting process, i can throw error by UserCancelledException, but on android, i can’t be throw it, sorry i explain not clearly, but this is my mean
image

Hey, no worries. I got the issue, I’m able to reproduce the issue. There seems to be an issue in the SDK, I’ll raise an issue and update you once the fix is available.

1 Like

@Ayush
let me know when it is resolved
Thank you!

Hey @chaulinh.se.it sorry for the delays, we have release a new version for Flutter SDK. Can you please update your SDK to 3.1.4 and check. In the latest version, you’ll need to do some changes in your login screen from where you are calling the login method. Please follow the steps in README. Feel free to reach out if you face any issue.

@Ayush
We cannot login with latest version, when i am down version, i can’t login as well, and i catch error, can help me check ASAP?

Hey @chaulinh.se.it can you try again and see if the issue persist?

I still cannot login

Hey @chaulinh.se.it, can you please change the buildEnv to BuildEnv.production and let us know? Thanks

What do you mean about buildEnV?

In the Web3AuthOptions which you pass during the Web3AuthFlutter.init, you’ll have buildEnv parameter. Please change it to BuildEnv.production and try once.

await Web3AuthFlutter.init(Web3AuthOptions(
      clientId: clientId,
      network: Network.sapphire_mainnet,
      redirectUrl: redirectUrl,
      buildEnv: BuildEnv.production,
    ));

Ah i got it, let me try agian

Sure, please let us know. We are updating our testnet and staging environment. We’ll let you know once they are updated. Meanwhile please use production in buildEnv.

This issue is now fixed in 3.1.5. pls upgrade

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