You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the Amplify SDK (AmplifyUiLiveness) version 1.2.16 and Amplify version 2.35.4. However we have encountered an issue where once the camera is initialized it does show the correct message - Move face in front of camera (when no face is in camera). As soon as I start scanning my face an error is returned as following.
failure(FaceLiveness.FaceLivenessDetectionError(code: 0, message: "An unknown error occurred.", recoverySuggestion: "Please open an issue...."))
I have attached the code sample as a screenshot.
Note: We are using custom credentials. We have tried to create a React sample project using the SDK and it seems to run perfectly fine with the same API endpoints used in our iOS App.
We believe that there might be an issue with the SDK. I have also tried to use an older version (1.2.9) but the issue still persists
Swift
React
Steps To Reproduce
Steps to reproduce the behavior:1. Create new swift UI CustomView
2. Add FaceLivenessDetectorView in body
3. Add session Id
4. Add credential provider, including accessKey, secretAccessKey, expiration and sessionToken
5. Build app
6. Scan Face
Expected behavior
The camera feed should show all steps to scan face. Instead it is failing as soon as face is position within the camera frame.
Swift Liveness Version
1.2.16
Xcode version
15.4
Relevant log output
failure(FaceLiveness.FaceLivenessDetectionError(code: 0, message: "An unknown error occurred.", recoverySuggestion: "Please open an issue...."))