Aws-sdk-ios: Support for Extension

Created on 20 Nov 2015  路  7Comments  路  Source: aws-amplify/aws-sdk-ios

I'm using services on iOS Share Extension. Any idea when/why this error? However AWSS3TransferUtility is executed and has result.

AWSS3TransferUtilityUploadCompletionHandlerBlock completionHandler = ^(AWSS3TransferUtilityUploadTask *task, NSError *error) {
            dispatch_async(dispatch_get_main_queue(), ^{
                // Do something e.g. Alert a user for transfer completion.
                // On failed uploads, `error` contains the error object.
                if (error) {
                    NSLog(@"Error: %@", error.localizedDescription);
                } else {
                    NSLog(@"Done %@", @"Success");
                }
            });
        };
feature request

Most helpful comment

Added support for setting sharedContainerIdentifier in the ServiceConfiguration with 2.4.6

All 7 comments

Currently, the iOS extension is not officially supported. I'll share this as a feature request to the team. If you use CocoaPods, you can try setting sharedContainerIdentifier to the underlying NSURLSession and see if it resolves the issue.

@yosuke-matsuda Awesome! Added configuration.sharedContainerIdentifier = @"here goes group id"; in AWSS3TransferUtility.m and it worked.

Added support for setting sharedContainerIdentifier in the ServiceConfiguration with 2.4.6

@karthiksaligrama appreciated

@karthiksaligrama can i set sharedContainerIdentifier in my class where i am initializing the transfer utility.

@karthiksaligrama We have added the sdk through Pods, and it would not be a good idea to go and modify the AWSS3TransferUtility.m file. Would I be able to set the sharedContainerIdentifier through Info.plist or is there any other way I could do this?

@karthiksaligrama Possible to set the sharedContainerIdentifier through the Info.plist file?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

victorleungtw picture victorleungtw  路  4Comments

aymericio picture aymericio  路  5Comments

r-plus picture r-plus  路  3Comments

pawlowskialex picture pawlowskialex  路  4Comments

lazy-var picture lazy-var  路  4Comments