-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Bug]: Firebase new RecaptchaVerifier() on Capacitor iOS does not load #7788
Comments
A pretty old (7 years ) https://stackoverflow.com/questions/44081040/ionic2-authentication-firebase that suggests the problem is in recaptcha checking the origin of the source (which would be capacitor, if I get it right). If I'm right on the above, there is likely no solution/out of scope to capacitor and this issue can be closed. I was just interested in finding out whether the problem is effectively Recaptcha or if it is Capacitor/if Capacitor is able to work around it. If it is not Capacitor, it is also puzzling that it works on android but not iOS? 🤔 |
As a workaround, I ended up with this for iOS NATIVE only for now:
A "little" clunky and unsure whether Apple will approve it at all 🙃 but at least the concept works works. Downsides are of course that
|
This is most likely RecaptchaVerifier not working on |
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0
Installed Dependencies:
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2
Other API Details
Platforms Affected
Current Behavior
on iOS,
console shows recaptcha is null after the new RecaptchaVerifier() call.
The container div exists (see container member)
Works on
× iOS native build
I THINK this is related to the captcha not being able to load through Capacitor? This could of course be an angular/fire or firebase issue but it only breaks on capacitor on iOS 🤔
On the other hand there are very few debugging details to be found
Expected Behavior
expected captcha to initialize and not be null
Project Reproduction
Additional Information
This could be an angular/fire or firebase issue, but it looks like it only breaks on Capacitor on iOS
The text was updated successfully, but these errors were encountered: