Open ghena opened 4 years ago
Hi guys, Using a onDeviceReady callback , FingerprintAuth is undefined. I'm trying using an android 8.0.0 device with fingerprint support builded with phonegap 9.0.0 Maybe I miss something in configuration. I hope for your advice. Config: `
<preference name="pgb-builder-version" value="2" /> <engine name="android" spec="7.0.0" /> <preference name="DisallowOverscroll" value="true" /> <preference name="android-minSdkVersion" value="23" /> <preference name="android-targetSdkVersion" value="29" />`
// DeviceReady callback function ` var onDeviceReady = function(){ // Here the code to verificate the fingerprint
FingerprintAuth.isAvailable(isAvailableSuccess, isAvailableError); /**
} */ function isAvailableSuccess(result) { console.log("FingerprintAuth available: " + JSON.stringify(result)); if (result.isAvailable) { var encryptConfig = {}; // See config object for required parameters FingerprintAuth.encrypt(encryptConfig, encryptSuccessCallback, encryptErrorCallback); } }
function isAvailableError(message) { console.log("isAvailableError(): " + message); }
};`
@ghena fixed?
try to do:
$ cordova prepare
or re'install android platform
Hi guys, Using a onDeviceReady callback , FingerprintAuth is undefined. I'm trying using an android 8.0.0 device with fingerprint support builded with phonegap 9.0.0 Maybe I miss something in configuration. I hope for your advice. Config: `
// DeviceReady callback function ` var onDeviceReady = function(){ // Here the code to verificate the fingerprint
FingerprintAuth.isAvailable(isAvailableSuccess, isAvailableError); /**
} */ function isAvailableSuccess(result) { console.log("FingerprintAuth available: " + JSON.stringify(result)); if (result.isAvailable) { var encryptConfig = {}; // See config object for required parameters FingerprintAuth.encrypt(encryptConfig, encryptSuccessCallback, encryptErrorCallback); } }
function isAvailableError(message) { console.log("isAvailableError(): " + message); }
};`