amazon-archives / aws-sdk-xamarin

AWS Mobile SDK for Xamarin (Beta)
Apache License 2.0
45 stars 18 forks source link

is there UWP and WP8.1 support on xamarin.forms? #39

Closed EmilAlipiev closed 7 years ago

EmilAlipiev commented 7 years ago

I implemented cognito identity and sync in xamarin PCL project. it works fine in android but when I try in UWP. I am getting an exception. Does that mean it only work for android and ios using xamarin.forms?

System.NotImplementedException was unhandled by user code
  HResult=-2147467263
  Message=This functionality is not implemented in the portable version of this assembly. You should reference the AWSSDK.Core NuGet package from your main application project in order to reference the platform-specific implementation.
  Source=AWSSDK.Core
  StackTrace:
       at Amazon.Util.Internal.PlatformServices.ApplicationSettings.GetValue(String key, ApplicationSettingsMode mode)
       at Amazon.CognitoIdentity.CognitoAWSCredentials.GetCachedIdentityId()
       at Amazon.CognitoIdentity.CognitoAWSCredentials..ctor(String accountId, String identityPoolId, String unAuthRoleArn, String authRoleArn, IAmazonCognitoIdentity cibClient, IAmazonSecurityTokenService stsClient)
       at Amazon.CognitoIdentity.CognitoAWSCredentials..ctor(String accountId, String identityPoolId, String unAuthRoleArn, String authRoleArn, RegionEndpoint region)
       at Amazon.CognitoIdentity.CognitoAWSCredentials..ctor(String identityPoolId, RegionEndpoint region)
tawalke commented 7 years ago

@EmilAlipiev The Xamarin SDK has migrated to the .NET SDK https://github.com/aws/aws-sdk-net This supports more platforms, you can add functionality via NuGet of individual services. You can read about the Xamarin part of the SDK here: http://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/ and the base SDK https://aws.amazon.com/documentation/sdk-for-net/