awslabs / amazon-kinesis-video-streams-webrtc-sdk-ios

iOS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
64 stars 28 forks source link

Get exception"identityId shouldn't be nil" when integrated with China beijing region cognito identity pool #73

Closed nimysan closed 1 year ago

nimysan commented 1 year ago

hi,

Webrtc ios sdk works fines for global cognito identity pool, but when try to integration with China beijing region Cognito identity pool. I got error like as below:

Error Domain=com.amazonaws.service.cognitoidentity. AWSCognitoCredentialsProviderHelper Code=0 "identityId shouldn't be nil" UserInfo={NSLocalizedDescription=identityId shouldn't be nil}

Any idea about this? Thanks

sirknightj commented 1 year ago

It might be that the service endpoint might need to be overwritten since cn regions use a different endpoint domain (.com.cn)

https://docs.amazonaws.cn/en_us/aws/latest/userguide/endpoints-Beijing.html

https://aws-amplify.github.io/aws-sdk-ios/docs/reference/AWSCore/Classes/AWSServiceConfiguration.html#/c:objc(cs)AWSServiceConfiguration(py)endpoint

Also note that the UI and documentation for creating the Cognito user pool and identity pools has recently been updated. https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producersdk-android-prerequisites.html

sirknightj commented 1 year ago

Closing due to no response. If this persists, please create an issue on aws-sdk-ios.