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");
}
});
};
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?
Most helpful comment
Added support for setting
sharedContainerIdentifierin theServiceConfigurationwith 2.4.6