I am finding a way to get user name for Amazon Cognito users pool. I am using AWS Android Mobile SDK with AWS Mobile Hub. Created the user and logged in from my app. After logging in, how can i get the username with which i have logged in?
You can use the com.amazonaws.mobile.client.AWSMobileClient
to integrate with cognito user pools. AWSMobileClient
has the getUsername
method that will return the signed-in user's username.
See the aws-sdk-android api reference ( available at https://aws-amplify.github.io/aws-sdk-android/docs/reference/ ) for more information
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.