-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
Language and Async Model
Kotlin
Amplify Categories
Predictions
Gradle script dependencies
# Put output below this line
implementation 'com.amplifyframework:core:2.29.0'
implementation 'com.amplifyframework.ui:liveness:1.6.0'
implementation 'com.amplifyframework:aws-auth-cognito:2.29.0'Environment information
# Put output below this line
# Unable to run ./gradlew --version due to Flutter plugin project structure.
# Please refer to the dependencies listed above for SDK versions.
Please include any relevant guides or documentation you're referencing
https://ui.docs.amplify.aws/android/connected-components/liveness
Describe the bug
On Samsung Galaxy Tab S10+ 5G (Android 15, One UI 7.0), the "Start" button in the Amplify Liveness SDK is hidden by the taskbar overlay at the bottom of the screen. This prevents users from starting the liveness check. The issue does not occur with other SDKs such as Onfido, which correctly handle overlays and safe areas.
Reproduction steps (if applicable)
- Integrate Amplify Liveness SDK in a Flutter app (using the official plugin).
- Run the app on Samsung Galaxy Tab S10+ 5G (Android 15, One UI 7.0).
- Navigate to the liveness check screen.
- Observe that the "Start" button is hidden by the taskbar overlay.
Code Snippet
// Put your code below this line.
// Relevant code from FaceLivenessView.kt
internal class FaceLivenessView(
context: Context,
id: Int,
creationParams: Map<String?, Any?>?,
val handler: EventStreamHandler
) : PlatformView {
// ...existing code...
init {
composeView.setContent {
// ...existing code...
FaceLivenessDetector(
sessionId = sessionId,
disableStartView = disableStartView,
region = region,
onComplete = { handler.onComplete() },
onError = { error ->
// ...error handling...
}
)
}
}
}
This class is responsible for rendering the Amplify Liveness UI in the Flutter plugin. The FaceLivenessDetector is initialized with parameters from Flutter, including disableStartView, which controls the visibility of the start screen. The issue occurs when the "Start" button is hidden by the taskbar overlay on certain Samsung devices.
Log output
// Put your logs below this line
Configuration File
{
"UserAgent": "aws-amplify-cli/2.0",
"Version": "1.0",
"auth": {
"plugins": {
"awsCognitoAuthPlugin": {
"UserAgent": "aws-amplify-cli/0.1.0",
"Version": "0.1.0",
"IdentityManager": {
"Default": {}
},
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId": "ap-northeast-x-xxxxxxxxxx",
"Region": "ap-northeast-x"
}
}
},
"CognitoUserPool": {
"Default": {
"PoolId": "ap-northeast-xxxxx",
"AppClientId": "5xxxxx",
"Region": "ap-northeast-1"
}
},
"Auth": {
"Default": {
"authenticationFlowType": "USER_SRP_AUTH",
"socialProviders": [],
"usernameAttributes": [
"EMAIL",
"PHONE_NUMBER"
],
"signupAttributes": [
"EMAIL"
],
"passwordProtectionSettings": {
"passwordPolicyMinLength": x,
"passwordPolicyCharacters": []
},
"mfaConfiguration": "OFF",
"mfaTypes": [
"SMS"
],
"verificationMechanisms": [
"EMAIL"
]
}
}
}
}
},
"predictions": {
"plugins": {
"awsPredictionsPlugin": {
"defaultRegion": "ap-northeast-x",
"identify": {
"identifyEntities": {
"maxEntities": "0",
"celebrityDetectionEnabled": "true",
"region": "ap-northeast-x",
"defaultNetworkPolicy": "auto"
}
}
}
}
}
}GraphQL Schema
// Put your schema below this line
Additional information and screenshots
Device Model: Samsung Galaxy Tab S10+ 5G
Android Version: 15
One UI Version: 7.0
The "Start" button is hidden by the taskbar overlay at the bottom of the screen.
This affects usability, as users cannot proceed with the liveness check.