Open zhonadan opened 2 weeks ago
Hi @zhonadan, I'm glad to see you have gotten Liveness running on Flutter. Unfortunately, we do not have a native Flutter Liveness component and we do not test support for flutter with the Android FaceLivenessDetector.
It sounds like you may be running into a Flutter specific bug that does not directly involve the Android liveness component. I understand the desire code fully within Flutter, but if you continue to run into issues, I would recommend writing FaceLivenessDetector within its own native Android Activity. You can launch the activity from within Flutter and then return back into Flutter once the FaceLivenessDetector has completed.
Before creating a new issue, please confirm:
Which UI component?
Liveness
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
We are using PlatformViewLink to integrate Liveness features in Flutter.
The camera screen freezes intermittently on Android10 devices. I haven't found the issue on other OS versions.
Reproduction steps (if applicable)
Add the Liveness Android View to the Flutter screen using PlatformViewLink, After closing and reopening the screen a few times, the camera preview screen freezes.
Code Snippet
Log output
No response
amplifyconfiguration.json
{ "auth": { "plugins": { "awsCognitoAuthPlugin": { "CredentialsProvider": { "CognitoIdentity": { "Default": { "PoolId": "", "Region": "" } } } } } } }
Additional information and screenshots
No response