Proxy settings on aws-sdk-ios

1

Hi. I'm trying to use proxy when my ios app accesses AWS Cognito and Lambda via aws-sdk-ios(but not amplify). But I couldn't find the way of implement that. I'd like to set proxy information like URLSession.

Can anyone help?

Thanks!

1 個回答
0

For new projects, you should not use the AWS SDK for iOS anymore. We are focusing our efforts on a new AWS SDK for Swift (in preview).

The AWS SDK for Swift implements a custom HTTP client that bypass macOS / iOS system wide proxy settings. The solution is to provide your own HTTP Client implementation, just for the duration of your testing.

Eventually, we would like the SDK to include such client by default. You can track progress and copy/paste code sample here https://github.com/awslabs/aws-sdk-swift/issues/817

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南