2D-Release Notes
v2.1.3 (2025.01.08) Download
Update
- Fix the issue of face-missing that may keep appearing in some special cases.
Migration Guides
- When migrating from older version to this version, you need to:
- Change the download link of module
AAILiveness
andAAINetwork
to the following value:pod 'AAINetwork', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-libraries/AAINetwork/AAINetwork-V1.0.2.tar.bz2', type: :tbz pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.1.3/iOS-Liveness-SDK-V2.1.3.tar.bz2', type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.1.2 (2024.12.19) Download
Update
- Optimize to address the potential face-missing issue in certain special cases.
Migration Guides
- When migrating from older version to this version, you need to:
- Change the download link of module
AAILiveness
andAAINetwork
to the following value:pod 'AAINetwork', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-libraries/AAINetwork/AAINetwork-V1.0.2.tar.bz2', type: :tbz pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.1.2/iOS-Liveness-SDK-V2.1.2.tar.bz2', type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.1.1 (2024.09.25) Download
Fixed
- Fixed the crash issue that may occurring under some specific conditions.
Update
- Add
PrivacyInfo.xcprivacy
.
Migration Guides
- When migrating from older version to this version, you need to:
- Change the download link of module
AAILiveness
andAAINetwork
to the following value:pod 'AAINetwork', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-libraries/AAINetwork/AAINetwork-V1.0.2.tar.bz2', type: :tbz pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.1.1/iOS-Liveness-SDK-V2.1.1.tar.bz2', type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.1.0 (2024.1.23) Download
Update
- Upgrade the detection model.
- Update the default value of
prepareTimeoutInterval
from 10s to 50s.
New Features
-
Support return the audit image sequence list.
Each action will generate 2 or 3 audit images, the number of audit images is not fixed because it depends on the user's action. If you enable this feature, the SDK will automatically upload the audit image sequence list to the server after liveness detection complete.
How to use
-
First enable the audit image data list feature before present the SDK page.
// Initialize the SDK ... // Enable the audit image data list feature. AAIAdditionalConfig *additionalConfig = [AAILivenessSDK additionalConfig]; additionalConfig.enableCollectAuditImages = YES; // The following properties are optional, you can set them according to your needs. // (Optional) The audit image width, default is 600. Available values in range [50, 1000]. additionalConfig.auditImageWidth = 300; // (Optional) The quality of audit image. The higher the quality, the larger the image size, and the longer the upload time. // Default is 30. Available values in range [30, 100]. additionalConfig.auditImageQuality = 30;
-
Then obtain the audit image data list after liveness detection complete. There are two ways to obtain the audit image data list:
-
One way is to get it from the
AAILivenessResult
object.NSArray<AAILivenessImageData *> *auditImageDataSequenceList = [livenessResult auditImageDataList];
-
Another way is to parse the
auditImageUrl
fileld in the liveness-detection openapi response, which is a download link for a zip file. See liveness-detection openapi for more detail.
-
-
Migration Guides
- When migrating from 2.0.11 to this version, you need to:
- Change the download link of module
AAILiveness
andAAINetwork
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.1.0/iOS-Liveness-SDK-V2.1.0.tar.bz2' , type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.11 (2023.10.13) Download
- Support BPS market (
AAILivenessMarketBPS
). - Upgrade
AAINetwork
to v1.0.2. - When migrating from 2.0.x to this version, you need to:
- Change the download link of module
AAILiveness
andAAINetwork
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.0.8/iOS-Liveness-SDK-V2.0.8.tar.bz2' , type: :tbz pod 'AAINetwork', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-libraries/AAINetwork/AAINetwork-V1.0.2.tar.bz2', type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.8 (2023.8.7) Download
- Billing optimization.
- When migrating from 2.0.x to this version, you need to:
- Change the download link of module
AAILiveness
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.0.8/iOS-Liveness-SDK-V2.0.8.tar.bz2' , type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.7 (2023.4.20) Download
- Added
AAILivenessFailedResult
as a helper class to facilitate handlingerrorInfo
. The usage of this class is as follows:vc.detectionFailedBlk = ^(AAILivenessViewController * _Nonnull rawVC, NSDictionary * _Nonnull errorInfo) { AAILivenessFailedResult *result = [AAILivenessFailedResult resultWithErrorInfo:errorInfo]; NSLog(@"Detection failed: %@, message: %@, transactionId: %@", result.errorCode, result.errorMsg, result.transactionId); // Close SDK page ... };
- Added property
recordUserGiveUp
to theAAILivenessViewController
to facilitate recording the user's give up behavior./// Whether to mark the action of tapping back button as "user_give_up". The default is NO. If you set YES, the `detectionFailedBlk` /// will be called(if you implement it) when the user taps the top left back button while liveneness detection is running. vc.recordUserGiveUp = YES;
- Improve stability.
- When migrating from 2.0.6 to this version, you need to:
- Change the download link of module
AAILiveness
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.0.7/iOS-Liveness-SDK-V2.0.7.tar.bz2' , type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.6 (2023.4.06) Download
- Deprecate the initialization methods
initWithAccessKey:secretKey:market:
andinitWithAccessKey:secretKey:market:isGlobalService:
, please useinitWithMarket:
orinitWithMarket:isGlobalService:
instead. - When migrating from 2.0.5 to this version, you need to:
- Change the download link of module
AAILiveness
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.0.6/iOS-Liveness-SDK-V2.0.6.tar.bz2' , type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.5 (2023.3.23) Download
- Support obtaining full face image by calling the API on the server side.
- When migrating from 2.0.4 to this version, you need to:
- Change the download link of module
AAILiveness
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.0.5/iOS-Liveness-SDK-V2.0.5.tar.bz2' , type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.4 (2023.3.20) Download
- Added:
- Support return the small square fullface image (
AAILivenessResult.fullFaceImg
). - Added property
showAnimationImg
andplayAudio
for classAAILivenessViewController
.
- Support return the small square fullface image (
- Fixed:
- Fixed the bug that the best image may not clear.
- Other minor updates:
- Modified the method
createVolumeView
ofAAILivenessUtil.m
to be compatible with SwiftUI.
- Modified the method
- When migrating from 2.0.3 to this version, you need to:
- Change the download link of module
AAILiveness
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.0.4/iOS-Liveness-SDK-V2.0.4.tar.bz2' , type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.3 (2023.2.10) Download
- Fix EXC_BAD_ACCESS_KERN_INVALID_ADDRESS bug that may occur in M1 chip devices.
- Other minor updates.
- When migrating from 2.0.2 to this version, you need to:
- Change the download link of module
AAILiveness
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.0.3/iOS-Liveness-SDK-V2.0.3.tar.bz2' , type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.2 (2022.12.23) Download
- Fix the bug that
onDetectionRemainingTime:
may not be called sometimes. - When migrating from 2.0.1 to this version, you need to:
- Change the download link of module
AAILiveness
to the following value:pod 'AAILiveness', :http => 'https://prod-guardian-cv.oss-ap-southeast-5.aliyuncs.com/sdk/iOS-liveness-detection/2.0.2/iOS-Liveness-SDK-V2.0.2.tar.bz2' , type: :tbz
- Then run
pod install
.
- Change the download link of module
v2.0.1 (2022.12.7) Download
-
Breaking changes:
- The property
configAvatarPreviewPath
ofAAILivenessWrapView
is unavailable, please useconfigAvatarPreviewPathV2
instead. - Improving enum
AAIDetectionType
,AAIDetectionResult
,AAIActionStatus
,AAILivenessMarket
declarations for Swift.
- The property
-
Other updates:
-
Disabled phone vertical detection by default. If you want to enable it, do the following setting:
vc.detectPhonePortraitDirection = YES; // Show the AAILivenessViewController ...
-
The number of default actions has been changed from 3 to 2(blink and posYaw).
-
The color of the round border in the avatar preview area has changed to a clear color. If you want to keep this color consistent with the old version of the SDK, just set the color manually:
AAIAdditionalConfig *additionalConfig = [AAILivenessSDK additionalConfig]; additionalConfig.roundBorderColor = [UIColor colorWithRed:0.36 green:0.768 blue:0.078 alpha:1.0]; // Other SDK configurations ... // Show the AAILivenessViewController ...
-
-
Added:
-
Added the ellipse dashed line during the liveness detection.
-
Support to set the detection level.
AAIAdditionalConfig *additionalConfig = [AAILivenessSDK additionalConfig]; // Set the color of the ellipse dashed line that appears during the liveness detection. Default is white color. additionalConfig.ellipseLineColor = [UIColor greenColor]; // Set the difficulty level of liveness detection. Default is AAIDetectionLevelNormal. // Available levels are AAIDetectionLevelEasy, AAIDetectionLevelNormal, AAIDetectionLevelHard // The harder it is, the stricter the verification is. additionalConfig.detectionLevel = AAIDetectionLevelNormal; // Other SDK configurations ... // Show the AAILivenessViewController ...
-
-
When migrating from older SDK(v1.x.x) to this version, you need to refer the document to reintegrate the SDK.
v1.4.0 (2023.2.10) Download
- Fix EXC_BAD_ACCESS_KERN_INVALID_ADDRESS bug that may occur in M1 chip devices.
- When migrating from 1.3.4 to this version, you need to:
- Replace ALL of the SDK files("AAILiveness" folder, "AAILivenessSDK.xcframework" folder, "Resource" folder).
v1.3.4 (2022.11.28) Download
- Fix bugs.
- When migrating from 1.3.3 to this version, you need to:
- Replace ALL of the SDK files("AAILiveness" folder, "AAILivenessSDK.xcframework" folder, "Resource" folder).
v1.3.3 (2022.8.26) Download
- Fix the global service bug.
- Compressed images of
AAIImgs.bundle
. - Updated the demo project.
- When migrating from 1.3.2 to this version, you need to:
- Replace ALL of the SDK files("AAILiveness" folder, "AAILivenessSDK.xcframework" folder, "Resource" folder).
v1.3.2 (2022.8.3) Download
- Updated
AAILivenessViewController
andAAILivenessUtil
. - When migrating from 1.3.1 to this version, you need to:
- Replace ALL of the SDK files("AAILiveness" folder, "AAILivenessSDK.xcframework" folder, "Resource" folder).
v1.3.1 (2022.7.12) Download
- Optimizing closed eye detection.
- Fix EXC_BAD_ACCESS bug that could occur in some cases.
- Updated
AAILivenessViewController
. - When migrating from 1.3.0 to this version, you need to:
- Replace "AAILiveness" folder, "AAILivenessSDK.xcframework" folder.
v1.3.0 Download
- Optimizing the capture of face image.
- Support closed eye detection.
- Add localized string "pls_open_eye".
- When migrating from 1.2.9 to this version, you need to:
- Replace ALL of the SDK files("AAILiveness" folder, "AAILivenessSDK.xcframework" folder, "Resource" folder).
v1.2.9 Download
- Add market "AAILivenessMarketPhilippines2".
- Add property
language
andprepareTimeoutInterval
forAAILivenessViewController
. - Add property
language
and removenetworkChanged:
method forAAILivenessResultViewController
. - Add methods
playAudio:lprojName:
andlocalStrForKey:lprojName:
for AAILivenessUtil. - Add
AAITimerWrapper
class(inAAILivenessUtil.h
andAAILivenessUtil.m
). - Add localized string key
fail_reason_prepare_timeout
. - When migrating from 1.2.8 to this version, you need to:
- Replace ALL of the SDK files(
AAILiveness
folder,AAILivenessSDK.xcframework
folder,Resource
folder).
- Replace ALL of the SDK files(
v1.2.8 Download
- Upgrade network module.
- Add property
actionTimeoutInterval
for AAILivenessViewController. - When migrating from 1.2.7 to this version, you need to:
- Add system libray
libz.tdb
. - Replace
AAILivenessViewController.h
andAAILivenessViewController.m
. - Replace the xcframework file.
- Add system libray
v1.2.7 Download
- Updated license check feature.
- When migrating from 1.2.6 to this version, you only need to replace the xcframework file.
v1.2.6 Download
- Set the width of the image output by the SDK from 300 to 600.
- When migrating from 1.2.5 to this version, you only need to replace the xcframework file.
v1.2.5 Download
- Support used as global service. If you need the SDK as a global service, you should use the initialization method
initWithMarket:isGlobalService:
and pass YES to theisGlobalService
parameter. - Add other market enum values.
- When migrating from 1.2.4 to this version, you only need to replace the xcframework file.
v1.2.4 Download
- Fix EXC_BAD_ACCESS bug that could occur in some cases.
- When migrating from 1.2.3 to this version, you only need to replace the xcframework file.
v1.2.3 Download
- Refactored AAILivenessViewController, now you can use the public interfaces of AAILivenessViewController to customize logic without modifing its source code.
- Support full-screen preview (See how to implement this effect in the demo project).
- When migrating from 1.2.1 to this version, you need to do:
- Replace the xcframework file and AAILivenessViewController.h and AAILivenessViewController.m.
- Use the public interfaces of AAILivenessViewController to implement custom logic or UI, it is not recommended to modify its source code directly.
v1.2.1 Download
- Fix the bug that
img
ofAAILivenessResult
may be nil when theonDetectionComplete:
method is called. - When migrating from 1.2.0 to this version, you only need to replace the xcframework file.
v1.2.0 Download
- Support face occlusion detection(only in the preparation phase, not in the action detection phase), this feature is off by default, you can turn it on if needed.
[AAILivenessSDK configDetectOcclusion:YES];
- Support Pakistan, Nigeria, Colombia.
- Updated Malaysia(ms) audio files.
- Added the
AAIModel.bundle
resource and called the[AAILivenessSDK configModelBundlePath:]
method inviewDidLoad
method ofAAILivenessViewController.m
. - Modified the
NSDictionary
parameter in theonDetectionComplete
method toAAILivenessResult
.
v1.1.8 Download
- Support to initialize SDK with license file.
- Automatic caching of response data.
v1.1.7 Download
- Support TLS 1.2.
- Support Malaysia.
- Remove property
_pre_hold_phone_v_key
and property_preResult
, add property_pre_key
and related logic inAAILivenessViewController.m
. - Add
configActionTimeoutSeconds
method to support customizing action detection time interval.
v1.1.6 Download
- Support Mexico.
v1.1.5 Download
- Add
_pre_hold_phone_v_key
property and related logic inAAILivenessViewController.m
. - Used Xcode 12.4 to rebuild the sdk and replace
framework
withxcframework
.
v1.1.4 Download
-
Add
configAvatarPreviewWidth
andconfigAvatarPreviewMarginTop
properties to support customizing the width and the margin-top of the avatar preview area.
Usage:wrapView.configAvatarPreviewWidth = ^CGFloat(CGRect wrapViewFrame) { return 300; }; wrapView.configAvatarPreviewMarginTop = ^CGFloat(CGRect wrapViewFrame) { return 64; };
v1.1.3
- Add
configAvatarPreviewPath
property to theAAILivenessWrapView.h
to support customizing the shape of the avatar preview area. - Used Xcode 12.2 to rebuild the sdk.
v1.1.2
- Add
configResultPictureSize
method to support custom result image size inAAILivenessSDK.h
. - Add
uploadImgCostMillSeconds
field in detection resultresultInfo
.
v1.1.1
- Add
_Nullable
forstartAuthWithCompletionBlk
parameter inAAILivenessWrapView.h
. - Add
_preResult = result;
foronFrameDetected:status:forDetectionType
inAAILivenessViewController.m
.
v1.1.0
- Modified the default sequence of actions and supports ticket authorization mode.
v1.0.6
- Support Thailand.
v1.0.5
- iOS 13 support, upgrade
graduallySetBrightness
method inAAILivenessUtil.m
.
v1.0.4
- Fix the bug that
onDetectionFailed:forDetectionType:
method might be called mutiple times.
v1.0.3
- Improved stability.
v1.0.2
- Improved the processing logic when the network request error occurs.
- Improved the multi-language detection logic.
v1.0.1
- Fix the problem that the Auth request cache cannot be cleared automatically.
Updated 12 days ago