EddyVerbruggen / cordova-plugin-touch-id

:nail_care: 👱‍♂️ Forget passwords, use a fingerprint scanner!
MIT License
214 stars 72 forks source link

TypeError: undefined is not an object (evaluating 'window.plugins.touchid') #70

Closed austincraig09 closed 5 years ago

austincraig09 commented 5 years ago

In my code, I have: else if ( ($rootScope.isIPad || $rootScope.isIOS) ) { //iOS check window.plugins.touchid.isAvailable(function (type) { $scope.iOSBioType = type; $scope.fingerprintAvailable = true; },

Breakpoint shows plugins as undefined each time.

I am already using deviceready, and other plugins are working correctly. Building to actual iPhone X.

Info-- Cordova CLI: 8.1.2 (cordova-lib@8.1.1) Ionic CLI Version: 2.2.3 Ionic App Lib Version: 2.2.1 ios-deploy version: 1.9.2 ios-sim version: 7.0.0 OS: macOS Node Version: v10.14.2 Xcode version: Xcode 10.1 Build version 10B61

Please let me know if you have any idea why or if you need me to give any more information! Thanks!