Matt Bart
Matt Bart

Reputation: 949

AWS Cognito Required Fields iOS

I have been trying to hook up my iOS app to my AWS Backend via Cognito. I am a bit confused because I choose certain attributes that are required for sign-ups such as Birthdate and Name. Although once I followed directions to use the AWSAuthUI here. The default UI appears as shown here:

shows SOME of the required fields

and then when one tries to sign up this error message comes up:

error message

which makes sense because the user did not input the other required fields as established by my User Pool, but how can I give the user the opportunity to submit their birthday if I'm using the AWSAuthUI

Upvotes: 0

Views: 169

Answers (1)

Matt Bart
Matt Bart

Reputation: 949

As per a comment, I'd like to answer my own question. It doesn't seem like there are any changes you can make to the AWSAuthUI other than small cosmetic changes. The best bet is to set up the UI yourself. The AWS team has set up a GitHub project that has an example of setting it up here. The relevant heading for Cognito User Pools is under, CognitoYourUserPools-Sample. They have options in both Swift and Objective-C.

Upvotes: 1

Related Questions