hCaptcha / hcaptcha-android-sdk

Android SDK for hCaptcha
https://www.hcaptcha.com
MIT License
71 stars 35 forks source link

Immediate retry on challenge closed #73

Closed hamish-snoop closed 1 year ago

hamish-snoop commented 2 years ago

We're attempting to auto trigger verification on challenge closed error. It seems this is causing a bit of a timing problem and the SDK thinks the dialog is still showing because I get a console log message: "DialogFragment was already added" But no actual onFailure callback, leaving us in an unhandled state.

I currently have a workaround to pause a bit before triggering the auto-retry verification, which seems to work.

regards

Samsung S21 Android 12 device SDK version 3.3.3

CAMOBAP commented 1 year ago

Implemented with HCaptchaConfig.retryPredicate check README for more information