-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configureWebView is called multiple times for no apparent reason (always after reload of a content of the webview) #40
Comments
• After waiting 10 minutes and getting this issue, I've waited 15 minutes more to see if there was a 3rd time. There wasn't :) • In example app from this repo, click validate and wait for 10 minutes. Captcha will dissapear (but it won't trigger |
TO SUM EVERYTHING UP As far as my understanding goes, |
It seems the problem might be in the way the JS code is checking if the captcha needs to be displayed. It's simply watching for any mutations in a As I understand, you're being able to use the lib with your workaround, right? I currently don't have much time to look into this, so if you're able to find anything on this or work on a fix, feel free to open a PR, I'll appreciate it. |
@vol24pl I was able reproduce the issue and stop it from happening on PR #42. However, when the second I'd love if you could take a look at #42 to check what do you think about it and if it works for you like that. |
Sorry for delayed responses, but my project that used your library is not maintained by me anymore. I think that webview becoming blank is a proper behavior for captcha that is timed out. Anyway I’ll try to find time and look into it :) |
No problem. I'm also not being able to give as much time to this project as needed. I'll leave the issue open for now. |
ViewController#1 with captcha
ViewController#2 with webView
STR:
configureWebView
to trigger. It will open VC#2dismiss()
this VC#2Expected: Nothing happened
Result: After 10 idle minutes
configureWebView
closure is oppened again fromcase .showReCaptcha
. It will open VC#2, but there will be now webView this time.Additional problem:
This line is a workaround:
as
configureWebView
is triggered also right after validation closure is done...also this code
will work only if not debugging. When paused in debug, more than 1 second will pass and there will be more than one consecutive call (just not within one second).
The text was updated successfully, but these errors were encountered: