aws-amplify / amplify-ui-swift-liveness

This repository offers a UI component for Amazon Rekognition Face Liveness, enabling developers to ensure that only authentic users, and not bad actors using spoofs, can access their services.
https://ui.docs.amplify.aws/swift/connected-components/liveness
Apache License 2.0
9 stars 20 forks source link

FaceLiveness.FaceLivenessDetectionError Code 1 #173

Open qazwsx521943 opened 1 week ago

qazwsx521943 commented 1 week ago

Describe the bug

We received some user responses mentioning that they cannot go through the liveness test no matter how many times they try. After viewing our remote logs, we found out for some users they encounter the error: The operation couldn’t be completed. (FaceLiveness.FaceLivenessDetectionError error 1.).

Steps To Reproduce

This cannot be reproduced on my device or on our company’s QA devices.
But we are creating a sessionID server side, and passing the session ID to the FaceLivenessDetectorView initializer, and some of the users encounters this error code when we check the remote event logs.

Expected behavior

The FaceLiveness Detector view should start when accepting valid sessionID

Swift Liveness Version

1.3.2

Xcode version

15.2

Relevant log output

The operation couldn’t be completed. (FaceLiveness.FaceLivenessDetectionError error 1.)

Is this a regression?

No

Regression additional context

No response

OS Version

17.5.1

Device

iPhone 11 Pro

Specific to simulators

No response

Additional context

This is intermittent. This happens to some users and we are not sure why.

5d commented 1 week ago

Hi @qazwsx521943 ,

Thank you for bringing this issue to our attention. Our team will investigate to identify any possible causes. In the meantime, we don’t have an iPhone 11 Pro available for testing. Could you let us know the most recent device model reported by your customers as being affected?

thisisabhash commented 1 week ago

Hello, Could you please post the verbose logs from the remote logs? Alternatively, you can print the error received to determine the cause on your side. The error codes are listed here:

https://github.com/aws-amplify/amplify-ui-swift-liveness/blob/main/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionError.swift