Skip to content
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

not working on mobile (with cordova) #231

Open
mfyang opened this issue Sep 1, 2020 · 5 comments
Open

not working on mobile (with cordova) #231

mfyang opened this issue Sep 1, 2020 · 5 comments

Comments

@mfyang
Copy link

mfyang commented Sep 1, 2020

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.

@WipeAir
Copy link
Member

WipeAir commented Nov 8, 2020

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

@mfyang
Copy link
Author

mfyang commented Nov 8, 2020

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.

@k-sai-kiranmayee
Copy link

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

@mfyang
Copy link
Author

mfyang commented Jan 7, 2021

1.9.0

@k-sai-kiranmayee
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants