How to implement Google reCaptacha into Ionic


#1

How can implement Google reCaptacha into Ionic. I tried following the instructions from Google:

Paste this snippet before the closing tag on your HTML template:

Paste this snippet at the end of the where you want the reCAPTCHA widget to appear:

The reCAPTCHA documentation site describes more details and advanced configurations.

This though did not work. Nothing is shown and their is no debug information. Has anyone implemented this feature into their app and could share a step by step instructions of how to do this? Thanks.


#2

Not sure you would need to add reCaptacha though. Its purpose is to prevent bots from spamming sites. Not really needed in an app where people have to explicitly download the app


#3

I agree with Mike, but if you really need it for some specific reason, the following link shows how to use Google reCaptcha with AngularJS:

~ Brad


#4

Yes, to prevent spam bots. I am concerned if an attacker (I understand attack on my app would be unlikely, but I am using AWS which I would have to pay for any resources used by spam and can’t afford the risk) downloads my app and then takes say the .apk file and runs it locally on their system where they create bots to start registering and posting. Again I understand the risk level is low, but I can’t afford it if it happened.


#5

Thanks for the link, I noticed it earlier but was unsure if it will work ionic.


#6

I don’t see there being a problem integrating this with Ionic. I hope it helps. Let me know if it works out for you.

~ Brad


#7

And how about the pairs keys/domain in reCaptcha admin panel? A Ionic app doesn’t has any domain…