-
Notifications
You must be signed in to change notification settings - Fork 548
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
Android - Can no longer connect to AWS IoT Core service after upgrading to 2.44.0 #2865
Comments
This issue still exists.... why it's closed without a resolution? |
@tonytonchev The ticket creator closed this issue 2 days after its creation. I would assume the OP figured out the issue. |
Hi, I used this service two years ago for my university coursework. I cannot remember how I solved this problem, nor access credentials to the AWS management console since we signed up to AWS using our university email which has now been erased. The only thing left now is my project's GitHub repo which was not properly documented either. To my best, I recall facing this issue for several days and debugging it by tweaking the policy. You will have to set the right policy not only for IoT core but also for Cognito authentication if you have it involved. I'd suggest setting the biggest access scope possible and progressively narrowing it down to your needs. |
Describe the bug
Can no longer connect to AWS IoT Core service after upgrading from
com.amazonaws:aws-android-sdk-mqtt:2.42.0
tocom.amazonaws:aws-android-sdk-iot:2.44.0
in android.To Reproduce
After having obtained the
userSession
through Cognito login, I create a cachingCredentialsProvider
:In the next step I attach the IoT policy to the identity id of this user in the identity pool. To do this, I first query the identity id as follow:
Then I attach the desired IoT policy to this identity id
When done, I create an
AWSIotMqttManager
to do the IoT stuffThe IoT policy I use for attaching to client's identity id:
The Cognito Identity pool role has already been attached the
AWSIoTConfigAccess
andAWSIoTDataAccess
policyThe error shown in the debug window in Android Studio
Which AWS service(s) are affected?
The issue involves AWS Cognito Identity Pool and AWS IoT core
Expected behavior
Prior to upgrading, I was able to make the connection to the AWS IoT service.
Environment Information (please complete the following information):
The text was updated successfully, but these errors were encountered: