Search code examples
iosaws-amplify

Use AWSMobileClient without `awsconfiguration.json`in iOS


I'd like to authenticate an iOS device to use AppSync/S3 services via Cognito user pools. The AWSMobileClient provides some nice conveniences but the initialization requires that you're bundle have an awsconfiguration.json file -- which our application will define dynamically. Is there a way to configure that manually?


Solution

  • As of AWS iOS SDK 2.11.0 (9th September 2019) it is now possible to configure without an awsconfiguration.json file.

    It's even documented in the amplify documentation here

    See also my answer to a related question