Skip to content

This is a cordova plugin to perform Google reCAPTCHA verify on Android using the android SafetyNet package.

License

Notifications You must be signed in to change notification settings

itsSoufianeDev/cordova-plugin-recaptcha-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ionic 3 Recaptcha Plugin (Android)

This is a cordova plugin to perform Google reCAPTCHA verify on Android using the android SafetyNet package.

Based on cordova-plugin-recaptcha by @pack-internal

Motivation

We needed to use recaptcha in our app, but using web recaptcha it does not work in Ionic/Cordova, as it does not have a domain name.
And didn't find any plugin for Angular2+ so this comes to fill that hole.

Links

Installation

cordova plugin add https://github.com/lucasbasquerotto/cordova-plugin-recaptcha-android

Usage

  ionViewDidLoad() {
    this.platform.ready().then(() => {
      (<any>window).IonicRecaptcha.verify('ANDROID_KEY', this.successCallback, this.errorCallback);
    });
  }
  
  successCallback(data) {
    console.log("Good, verified", data);
  }

  errorCallback(err) {
    console.log("Bad, not verified", err);
  }

About

This is a cordova plugin to perform Google reCAPTCHA verify on Android using the android SafetyNet package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 92.5%
  • JavaScript 7.5%