Skip to content

Failed to start the face liveness session on Android & IOS #209

@pdguru81

Description

@pdguru81

Before creating a new issue, please confirm:

Which UI component?

Liveness

Gradle script dependencies

// Put output below this line
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.0.21"
    implementation 'com.amplifyframework:aws-auth-cognito:2.23.0'
    implementation 'com.amazonaws:aws-android-sdk-mobile-client:2.57.0'
    implementation 'com.amplifyframework:aws-predictions:2.23.0'
    implementation 'com.amplifyframework.ui:liveness:1.3.0'
    implementation 'androidx.compose.material3:material3:1.3.1'
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4'
    implementation 'androidx.activity:activity-compose:1.9.3'
    implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7'
    implementation 'io.github.cdimascio:dotenv-kotlin:6.5.0'


Environment information

# Put output below this line

Build time:   2023-11-29 14:08:57 UTC
Revision:     28aca86a7180baa17117e0e5ba01d8ea9feca598

Kotlin:       1.9.20
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          1.8.0_411 (Oracle Corporation 25.411-b09)
OS:           Mac OS X 14.3 aarch64



Please include any relevant guides or documentation you're referencing

No response

Describe the bug

We are unable to complete the liveness check on Android or IOS during development.
I can launch a video session however, the liveness UI crashes right after my liveness has been captured.

We are using flutter and leverage Method Channels messages to start the liveness session on native android OS from our flutter app.
It's unclear why everything we've tried hasn't worked.

Reproduction steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


amplifyconfiguration.json

{
  "auth": {
    "plugins": {
      "awsCognitoAuthPlugin": {
        "CognitoUserPool": {
          "Default": {
            "PoolId": "$cognitoUserPoolId",
            "AppClientId": "$appClientId",
            "Region": "$region"
          }
        },
        "CredentialsProvider": {
          "CognitoIdentity": {
            "Default": {
              "PoolId": "$identityPoolId",
              "Region": "$region"
            }
          }
        },
        "Auth": {
          "Default": {
            "authenticationFlowType": "USER_SRP_AUTH"
          }
        }
      }
    }
  },
  "api": {
    "plugins": {
      "awsAPIPlugin": {
        "endpoint": "$apiGatewayUrl",
        "region": "$region",
        "authorizationType": "AWS_IAM"
      }
    }
  },
  "analytics": {
    "plugins": {
      "awsPinpointAnalyticsPlugin": {
        "pinpointAnalytics": {
          "appId": "$awsPinpointAppId",
          "region": "$region"
        },
        "pinpointTargeting": {
          "region": "$region"
        }
      }
    }
  }
}

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions