morcmarc / react-native-cognito

AWS Cognito integration module for React Native
MIT License
63 stars 10 forks source link

Does not sync for non-AWSRegionEUWest1 identities #2

Closed harip795 closed 8 years ago

harip795 commented 8 years ago

The region is hardcoded for sync.

AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc]
                                          initWithRegion:AWSRegionEUWest1
                                          credentialsProvider:credentialsProvider];

AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc]
                                          initWithRegion:[self getRegionFromString:region] // FIX
                                          credentialsProvider:credentialsProvider];
morcmarc commented 8 years ago

Thanks for reporting this. Should be fixed in v1.3.0-alpha