I'm trying to wrap android fingerprint API. For first I've tried to wrap the simplest method - isHardwareDetected. https://developer.android.com/reference ... Detected()
Documentation says that to use this class I need to grant a permission - USE_FINGERPRINT, so I've used the metadata declaration way from LC DP7 Release Notes.
Everything seems to be easy, but while installing, android saying there is no permission required. And also the app crashes when I'm calling isHardwareDetected() method.metadata android.features is "hardware.fingerprint"
metadata android.hardware.fingerprint.required is "true"
metadata android.permissions is "USE_FINGERPRINT"
Please help to move forward.
Here is the LCB code.
Code: Select all
library com.livecode.library.androidfingerprint
use com.livecode.foreign
use com.livecode.java
metadata title is "AndroidFingerprint"
metadata author is "Livecode"
metadata version is "1.0.0"
metadata android.features is "hardware.fingerprint"
metadata android.hardware.fingerprint.required is "true"
metadata android.permissions is "USE_FINGERPRINT"
foreign handler _isHardwareDetected()returns JBoolean binds to "java:android.hardware.fingerprint.FingerprintManager>isHardwareDetected()Z"
public handler isfingerprintHardwareDetected() returns Boolean
unsafe
return _isHardwareDetected()
end unsafe
end handler
end library
Gurgen