Closed hamishnorton closed 1 year ago
@hamishnorton Thanks for the report. This is clearly a flutter integration so I may move your issue, but let's try and narrow down the problem.
Does this happen on every getClient on this device? This is due to the SDK not being able to reach one of our hosts, either recaptcha.net or gstatic.com. Can you verify that those hosts are reachable from the device and you can reach other hosts?
Do you have any kind of proxy, network blocking, firewall etc set up for this device? Can you try a different network?
Thanks, Mark
Hi @mcorner , After checking connectivity to those hosts with the device I discovered the problem. It was to do with a local network issue that occurred a day or too back, and the device not noticing. I've also tested on an Android 11 device and it worked fine. Feel free to close the issue.
Could be nice to have some feedback out of the .initClient() method to indicate the problem though to limit the possibility of people without connectivity to the hosts logging an issue.
Are you seeing the problem on Android or iOS?
Android
Contact Details
hamish.norton@theta.co.nz
Describe the bug
PlatformException (PlatformException(FL_INIT_FAILED, com.google.android.recaptcha.RecaptchaException: Network Error, null, null))
Site Key
No response
Select the method used to integrate with reCAPTCHA Mobile.
GMaven (Android)
SDK Version
18.3.0
To Reproduce
await RecaptchaEnterprise.initClient(siteKeyAndroid);
Expected behavior
RecaptchaEnterprise to initialize without error.
Development IDE
VSCode 1.82.2
To Reproduce
Relevant log output
Relevant log output