vue-recaptcha-v3
vue-recaptcha-v3 copied to clipboard
not working on mobile (with cordova)
On both iphone and android app built with vue & cordova, it shows the msg "could not connect to recaptcha service, please check your internet connection and reload to get reCaptcha challenge".
If I kill the app process and restart, the error msg will disappear. but if I just put the app into sleep, and come back to it, the error msg will appear again. so I have to kill the app again.
The same code base works fine on browser.
Does it show this message within the reCaptcha window? Is it happening always or just "randomly"?
It only works first time after the app is newly lunched. Then it always does not work. If you kill the app and relaunch again, it will work one time.
@mfyang Could I know which version of vue-recaptcha-v3 you are using?
@WipeAir My app is built through Cordova too...I'm using version 1.9 according to this https://github.com/AurityLab/vue-recaptcha-v3/tree/vue-v2.x. I'm getting an error saying Error for site owner. Invalid domain for site key
, however, it's working fine in the browser (both mobile and desktop).
Do you think it's because of the domain too? Since the Cordova app doesn't contain any domain?
1.9.0
Thank you @mfyang, so you are not getting any error like below?
Error for site owner. Invalid domain for site key
I'm also using Vue (2.x) and Cordova. If you aren't getting any error and I'm not being a bother, can you help me with the following, please
- Have you added any specific changes to config.xml related to this or any such?
- In my application, have disabled the domain validation, could you tell me how you managed the domain since Cordova built app has the origin of
file://
- Do we have to create a separate
siteKey
for the android/iOS app?
Thank you!