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
Hello.
I'm inquiring about an error while testing this package in iOS.
in FaceLivenessDetectorView,
After reaching the DisplayState.displayingLivense state
When the app is inactive (or background) FaceLivenessDetectionError(code: 5, message: "Camera permissions have not been granted.", recoverySuggestion: "Prompt the user to grant camera permission.") An error occurs.
My example code
...
...
FaceLivenessDetectorView(
sessionID: sessionId,
region: region,
isPresented: Binding(
get: { true },
set: { _ in }
),
onCompletion: { result in
switch result {
case .success:
// success process
case .failure(let error):
/// Here !! error occurs
default:
// default process
}
}
)
Of course, the camera permission was already authorized.
Steps To Reproduce
Steps to reproduce the behavior:1. FaceLivenessDetectorView show
2. Click on beginCheckButton
3. go to background
4. occurs error
Expected behavior
No error occurs
Swift Liveness Version
1.2.16
Xcode version
Version 15.2 (15C500b)
OS Version
iOS 15.7.1
Device
iPhone 12
The text was updated successfully, but these errors were encountered:
This has been fixed in version 1.3.1: moving the app to the background during a liveness check now results in a .userCancelled error.
Please update your dependency.
Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Hello.
I'm inquiring about an error while testing this package in iOS.
in FaceLivenessDetectorView,
After reaching the DisplayState.displayingLivense state
When the app is inactive (or background)
FaceLivenessDetectionError(code: 5, message: "Camera permissions have not been granted.", recoverySuggestion: "Prompt the user to grant camera permission.")
An error occurs.Of course, the camera permission was already authorized.
Steps To Reproduce
Expected behavior
No error occurs
Swift Liveness Version
1.2.16
Xcode version
Version 15.2 (15C500b)
OS Version
iOS 15.7.1
Device
iPhone 12
The text was updated successfully, but these errors were encountered: