Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No value for sessionId #147

Closed
2 tasks done
RAISERALEX21 opened this issue Apr 29, 2024 · 2 comments
Closed
2 tasks done

No value for sessionId #147

RAISERALEX21 opened this issue Apr 29, 2024 · 2 comments
Labels
liveness This issue relates to the Liveness component question Further information is requested

Comments

@RAISERALEX21
Copy link

Before creating a new issue, please confirm:

Which UI component?

Liveness

Gradle script dependencies

plugins {
    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
    id 'org.jetbrains.kotlin.plugin.serialization'
}

android {
    namespace 'com.amplifyframework.ui.sample.liveness'
    compileSdk 34

    buildFeatures {
        buildConfig true
    }

    defaultConfig {
        applicationId "com.amplifyframework.ui.sample.liveness"
        minSdk 24
        targetSdk 34
        versionCode 1
        versionName "1"
        buildConfigField "boolean", "SHOW_DEBUG_UI", "false"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
    buildFeatures {
        compose true
    }
    composeOptions {
        kotlinCompilerExtensionVersion '1.4.3'
    }
    packaging {
        resources {
            excludes += '/META-INF/{AL2.0,LGPL2.1}'
            excludes += 'META-INF/versions/9/previous-compilation-data.bin'
        }
    }
}

dependencies {
    // Use this to pull in local module of Amplify UI
    // Must also uncomment liveness sample project settings.gradle includeBuild
    //implementation 'com.amplifyframework.ui:liveness'

    // or

    // Use this to use published version of Amplify UI
    implementation "com.amplifyframework.ui:liveness:$amplifyUIVersion"

    implementation "com.amplifyframework:core-kotlin:$amplifyVersion"
    implementation "com.amplifyframework:aws-api:$amplifyVersion"
    implementation "com.amplifyframework:aws-auth-cognito:$amplifyVersion"
    implementation "com.amplifyframework:aws-predictions:$amplifyVersion"

    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
    implementation "com.google.accompanist:accompanist-permissions:0.28.0"
    implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3'
    implementation 'androidx.core:core-ktx:1.9.0'
    implementation 'androidx.navigation:navigation-compose:2.5.3'
    implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
    implementation 'androidx.activity:activity-compose:1.6.1'
    implementation "androidx.compose.ui:ui:$compose_version"
    implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
    implementation 'androidx.compose.material3:material3:1.1.0'
    implementation 'androidx.appcompat:appcompat:1.6.1'
    debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
    debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
}

Environment information

------------------------------------------------------------
Gradle 8.2.1
------------------------------------------------------------
 
Build time:   2023-07-10 12:12:35 UTC
Revision:     a38ec64d3c4612da9083cc506a1ccb212afeecaa
 
Kotlin:       1.8.20
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          1.8.0_311 (Oracle Corporation 25.311-b11)
OS:           Mac OS X 10.16 x86_64

Please include any relevant guides or documentation you're referencing

No response

Describe the bug

At the end of the guide steps ->
Delete the generated API files located at app/src/main/java/[YOUR_API_NAME].

If you encounter an error "SDK location not found," you may need to go to File -> Sync Project with Gradle Files.

Finally, build and run the project on an Android device using Android Studio.

I encounter the following error when installing the application.
Captura de Pantalla 2024-04-29 a la(s) 9 20 19 (1)

Reproduction steps (if applicable)

At the end of the guide steps ->
Delete the generated API files located at app/src/main/java/[YOUR_API_NAME].

If you encounter an error "SDK location not found," you may need to go to File -> Sync Project with Gradle Files.

Finally, build and run the project on an Android device using Android Studio.

I encounter the following error when installing the application.
Captura de Pantalla 2024-04-29 a la(s) 9 20 19 (1)

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line
<img width="956" alt="Captura de Pantalla 2024-04-29 a la(s) 9 20 19 (1)" src="https://github.com/aws-amplify/amplify-ui-android/assets/3058806/e61b3554-f5e8-4772-b859-f318e48600e5">


amplifyconfiguration.json

JSON:::
{
    "UserAgent": "aws-amplify-cli/2.0",
    "Version": "1.0",
    "api": {
        "plugins": {
            "awsAPIPlugin": {
                "livenessBackendAPI": {
                    "endpointType": "REST",
                    "endpoint": "https://5qtou6p436.execute-api.us-east-1.amazonaws.com/dev",
                    "region": "us-east-1",
                    "authorizationType": "AWS_IAM"
                }
            }
        }
    },
    "auth": {
        "plugins": {
            "awsCognitoAuthPlugin": {
                "UserAgent": "aws-amplify-cli/0.1.0",
                "Version": "0.1.0",
                "IdentityManager": {
                    "Default": {}
                },
                "CredentialsProvider": {
                    "CognitoIdentity": {
                        "Default": {
                            "PoolId": "us-east-1:9923229d-e322-4d23-bbf8-b22c8ed3a2c7",
                            "Region": "us-east-1"
                        }
                    }
                },
                "CognitoUserPool": {
                    "Default": {
                        "PoolId": "us-east-1_k4H5NZqDH",
                        "AppClientId": "5nhoomrfgc2visru2stud45bct",
                        "Region": "us-east-1"
                    }
                },
                "Auth": {
                    "Default": {
                        "OAuth": {
                            "WebDomain": "liveness70a2b540-70a2b540-dev.auth.us-east-1.amazoncognito.com",
                            "AppClientId": "5nhoomrfgc2visru2stud45bct",
                            "SignInRedirectURI": "myapp://callback/",
                            "SignOutRedirectURI": "myapp://signout/",
                            "Scopes": [
                                "phone",
                                "email",
                                "openid",
                                "profile",
                                "aws.cognito.signin.user.admin"
                            ]
                        },
                        "authenticationFlowType": "USER_SRP_AUTH",
                        "socialProviders": [],
                        "usernameAttributes": [],
                        "signupAttributes": [
                            "EMAIL"
                        ],
                        "passwordProtectionSettings": {
                            "passwordPolicyMinLength": 8,
                            "passwordPolicyCharacters": []
                        },
                        "mfaConfiguration": "OFF",
                        "mfaTypes": [
                            "SMS"
                        ],
                        "verificationMechanisms": [
                            "EMAIL"
                        ]
                    }
                }
            }
        }
    }
} ```

### Additional information and screenshots

_No response_
@github-actions github-actions bot added the pending-triage Issue is pending triage label Apr 29, 2024
@tylerjroach
Copy link
Member

Creation of the Liveness backend is up to the customer. See https://docs.aws.amazon.com/rekognition/latest/dg/face-liveness-programming-api.html for a guide on creating a backend.

You may. have to modify the sample code to fit the structure of the response coming from your configured backend.

@tylerjroach tylerjroach added the question Further information is requested label Apr 29, 2024
@github-actions github-actions bot removed the pending-triage Issue is pending triage label Apr 29, 2024
@mattcreaser mattcreaser added the liveness This issue relates to the Liveness component label May 2, 2024
@mattcreaser mattcreaser added the closing soon This issue will be closed in 7 days unless further comments are made. label Jul 8, 2024
@github-actions github-actions bot removed the closing soon This issue will be closed in 7 days unless further comments are made. label Aug 7, 2024
Copy link
Contributor

github-actions bot commented Aug 7, 2024

This issue is now closed. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
liveness This issue relates to the Liveness component question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants