vue-recaptcha-v3 icon indicating copy to clipboard operation
vue-recaptcha-v3 copied to clipboard

not working on mobile (with cordova)

Open mfyang opened this issue 4 years ago • 5 comments

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.

mfyang avatar Sep 01 '20 18:09 mfyang

Does it show this message within the reCaptcha window? Is it happening always or just "randomly"?

WipeAir avatar Nov 08 '20 11:11 WipeAir

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 avatar Nov 08 '20 16:11 mfyang

@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?

k-sai-kiranmayee avatar Jan 07 '21 05:01 k-sai-kiranmayee

1.9.0

mfyang avatar Jan 07 '21 15:01 mfyang

Thank you @mfyang, so you are not getting any error like below?

Error for site owner. Invalid domain for site key

image

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!

k-sai-kiranmayee avatar Jan 07 '21 15:01 k-sai-kiranmayee