- 15 Nov 2024
- 1 Minute à lire
- SombreLumière
Integrate the Biometric Sensor SDK
- Mis à jour le 15 Nov 2024
- 1 Minute à lire
- SombreLumière
Android
The following procedure allows you to integrate and use the OneSpan Biometric Sensor SDK in your Android project.
To use the OneSpan Biometric Sensor SDK in your Android project
Link BiometricSensorSDK.aar from the OneSpan Mobile Security Suite package to your project.
Link the androidx.appcompat:appcompat library from Google version 1.1.0 and later to your project.
Link the androidx.biometric:biometric library from Google version 1.0.1 and later to your project.
To be able to access the biometric authentication service, you need to set appropriate permissions in your application configuration.
For devices that run on Android versions earlier than Android 9, you need to add the USE_FINGERPRINT permission to the AndroidManifest.xml file.
For devices that run on Android 9 or later, you need to add the USE_BIOMETRIC permission to the AndroidManifest.xml file.
You are now ready to use the OneSpan Biometric Sensor SDK. For more information on how to integrate the functions, see Overview of the Biometric Sensor SDK, the technical documentation, and the sample included in the product package.
iOS
The following procedure enables you to integrate and use the OneSpan Biometric Sensor SDK in your iOS project.
To use the OneSpan Biometric Sensor SDK in your iOS project
Link the MSSBiometricSensor.xcframework from the OneSpan Mobile Security Suite package to your Xcode project.
In the Build Settings > Other Linker flags section of your Xcode project, add the following line:
-weak_framework LocalAuthentication.
In the Info.plist file, define the NSFaceIDUsageDescription key.
You are now ready to use the OneSpan Biometric Sensor SDK. For more information on how to integrate the functions, see Overview of the Biometric Sensor SDK, the technical documentation, and the sample included in the product package.