Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

tabrindle/cordova-plugin-samsungpass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

cordova plugin add https://github.com/tabrindle/cordova-plugin-samsungpass.git

OR

npm install cordova-plugin-samsungpass

Support

  • Android
  • Tested on Galaxy S6
  • Should work on Galaxy S5

Setup

cordova create ~/Developer/SamsungPassTest com.test.samsungpass SamsungPassTest

cordova platform add android

cordova plugin add cordova plugin add https://github.com/tabrindle/cordova-plugin-samsungpass.git

Methods

SamsungPass.checkSamsungPassSupport();

SamsungPass.checkForRegisteredFingers();

SamsungPass.startIdentifyWithDialog();

Example

Success and Failure callbacks are defaulted so if you like, you may pass an empty function call like this:

SamsungPass.checkSamsungPassSupport();

If you require more than just a log, then pass functions like this:

SamsungPass.checkForRegisteredFingers(function() {
  console.log('CheckForRegisteredFingersWithSamsungPass Success');
  //do something funny
}, function() {
  console.log('CheckForRegisteredFingersWithSamsungPass Failure');
  //do something sad
});

About

Cordova plugin for Samsung Pass - Fingerprint reading

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published