Code Monkey home page Code Monkey logo

Comments (6)

EddyVerbruggen avatar EddyVerbruggen commented on May 27, 2024

So what have you tried to fix it, and how exactly are you testing it?

from cordova-plugin-touch-id.

ibondoc22 avatar ibondoc22 commented on May 27, 2024

Hi Eddy,

tried adding this in my index.html

<button onclick="window.plugins.touchid.isAvailable(function(msg) {alert('ok: ' + msg)}, function(msg) {alert('not ok: ' + msg)})">Touch ID available?</button>
<button onclick="window.plugins.touchid.verifyFingerprint('Scan your fingerprint please', function(msg) {alert('ok: ' + msg)}, function(msg) {alert('not ok: ' + JSON.stringify(msg))})">Scan fingerprint</button>

also tried

window.plugins.touchid.isAvailable(
  function() {alert('available!')}, // success handler: TouchID available
  function(msg) {alert('not available, message: ' + msg)} // error handler: no TouchID available
);

on browser both examples are loading and throwing the error no touchid available, but when testing it with iPhone 6 / iOs9 no feedback at all.

from cordova-plugin-touch-id.

EddyVerbruggen avatar EddyVerbruggen commented on May 27, 2024

That first button should work fine indeed. You are including cordova.js and run as a standalone app (not a companion app)?

from cordova-plugin-touch-id.

ibondoc22 avatar ibondoc22 commented on May 27, 2024

i am currently trying to make it work using the Phonegap development app, but also tried it after building it in build.phonegap.com

cordova.js is included on my index.html

from cordova-plugin-touch-id.

EddyVerbruggen avatar EddyVerbruggen commented on May 27, 2024

The developer app won't work as it doesn't ship with the Touch ID plugin AFAIK.

PhoneGap Build should work, but you must include the plugin in config.xml..

from cordova-plugin-touch-id.

ibondoc22 avatar ibondoc22 commented on May 27, 2024

Thanks Eddy,

I will try this and let you know the outcome.

Edit:

Plugin worked after adding the following to the config.xml

<plugin name="cordova-plugin-touch-id" source="npm" spec="~3.2.0" />

Thanks,

from cordova-plugin-touch-id.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.