aws-amplify / docs

AWS Amplify Framework Documentation
https://docs.amplify.aws
Apache License 2.0
483 stars 1.05k forks source link

IoT Pub/Sub only first cognito user can work #319

Closed josh-chai closed 5 years ago

josh-chai commented 5 years ago

Describe the bug Develop on the Swift When using AWSMobileClient to connect IoT Pub/Sub/Shadow, only the first cognito user can success, but second and more new user both can't connecting IoT.

I have use amplify js SDK on the web frontend, try the same parameters, Cognito User Pool, Idp, Idp Auth Role, IoT. That's all success. so I check my settings was right

To Reproduce Steps to reproduce the behavior:

  1. Sign up first user(in the User pool is first user)
  2. Use AWSMobileClient to connect IoT is success
  3. Sign up second user or more new user
  4. Use AWSMobileClient to connect IoT is failed

Expected behavior All user can connect to IoT

Screenshots AWSMobileClient response connect error status

Smartphone (please complete the following information):

desokroshan commented 5 years ago

We are tracking this in aws-sdk-ios repo Issue#1149.

frankmuellr commented 5 years ago

Closing this issue since we're tracking the issue in the iOS repo.