Closed mjkimloan closed 3 years ago
This Problem is Solved. but, I missed the API documentation for the exact resolution.
CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
requireContext(),
null,
"myIdentityPoolId",
"myunauthRoleArn",
"myauthRoleArn",
Regions.AP_NORTHEAST_2
);
credentialsProvider.clearCredentials();
**credentialsProvider.getIndentityId();**
I am trying to use kinesisVideoStream APi in guest mode without logging in. but, When I call the UpdateSignalingChannelInfoTask method, I get an AccessDeniedException (Describe Signaling Channel failed with Exception) error message. I know this is an error because the state of userState is not authorized in the SIGNED_OUT state. Is there a method like AWSMobileClient.default().clearCredentials() for userState value like ios? Or is there a solution?
** There is no problem with the Provider information in the awsconfiguration.json file.
Below is the code I tried.
static class UpdateSignalingChannelInfoTask extends AsyncTask<Object, String, String> { final WeakReference mFragment;