amazon web services - What are the required Plist settings for the AWSCognitoIdentityProvider in iOS? -


i've been using ios aws sdk , it's pretty awesome, if documentation but. ;) reasons not germane post, attempting use awscognitoidentityprovider provided in aws sdk. unfortunately moment app attempts instantiate object, following error received:

...exception 'nsinternalinconsistencyexception', reason: 'the service ? configuration nil. need configure info.plist or set defaultserviceconfiguration before using method.'

familiar territory, had seen s3, etc...it means need configured in plist. problem - unlike s3, there doesn't seem documentation on plist settings should object. aws mobilehub sample code doesn't utilize object , github samples don't either. what's actual configuration object supposed be?

aaaaand answering own question (after trial , error educated guessing) can other poor souls...

the plist setting require is:

<dict>             <key>cognitoidentityprovider</key>         <dict>             <key>default</key>             <dict>                <key>poolid</key>                 <string>[your pool id]</string>                 <key>region</key>                 <string>[your region]</string>             </dict>         </dict> </dict> 

those of who've worked , bled cognito before note these settings identical supply credentialsprovider/cognitoidentity configuration (which have examples in mobilehub). saves tearing eyeballs out.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -