aws-sdk-ios

Referencing AWS S3 bucket name programmatically instead of hardcoded

六眼飞鱼酱① 提交于 2021-02-11 15:23:35
问题 I'm working with AWS Amplify to develop an iOS application. I've added storage through S3 to host some assets and am trying to configure the application to download them. The only issue is that every example I see has the bucket name and path hardcoded, but because I have multiple environments and make new environments sometimes and each bucket has the environment name appended to it, I don't want to have to rewrite the bucket name each time. For example if I'm in my test environment the

Core Data concurrency `performBlockAndWait:` NSManagedObjectContext zombie

╄→гoц情女王★ 提交于 2020-01-11 13:47:13
问题 I have a following crash report from my released app: synchronizeMyWords method fetches the entities from database, creates private queue context with main context parent and finally saves results. All operations are in the background thread. This method being called every time app goes into background and foreground . Here is a simplified method: - (AWSTask *)synchronizeMyWords { __weak typeof(self) weakSelf = self; AWSContinuationBlock block = ^id _Nullable(AWSTask * _Nonnull task) { if (

AWS Cognito get User Group in Swift

こ雲淡風輕ζ 提交于 2020-01-04 07:07:50
问题 So I've implemented Amazon Cognito login on an iOS app in Swift and it all works great. However I'm now trying to find out the groups that a logged in user belongs to. I can't seem to find a good way of doing this from within the app. The SDK doesn't seem to provide a way of doing so from what I can see. Any help would be much appreciated! 回答1: Currently the groups are exposed in the ID token issued to the user. It is populated in claim "cognito:groups". More details here: http://docs.aws

Using AWS Cognito and aws-ios-sdk v.2.4.16 with developer identities

夙愿已清 提交于 2020-01-02 04:46:15
问题 I set up a lambda group of functions to do all my authentication. I connect from my app through the api gateway and then finally call GetOpenIdTokenForDeveloperIdentity(). This returns an identityId and token to my device through the gateway. Next I follow this site's instructions (for Objective-C): http://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html Since I have the identityId and token I started with this: DeveloperProvider.h #import <AWSCore

aws dynamodb how to use object mapper with batch get in ios

╄→гoц情女王★ 提交于 2019-12-23 12:26:20
问题 I need to get ~50 items with their primary keys from dynamodb using ios sdk. i am able to get the items by AWSDynamoDB.defaultDynamoDB().batchGetItem but couldn't figure out if it is possible to use object mapper with the response. Unfortunately objectmapper class in ios doesn't have batchGet function. As far as i know i cant use query in this situation. Is it possible to use object mapper? If not which one makes more sense: parsing the response to get the desired class instance or calling

dynamodb scanexpression with scan filter in objective-c

末鹿安然 提交于 2019-12-22 17:38:13
问题 AWSDynamoDBObjectMapper *dynamoDBObjectMapper = [AWSDynamoDBObjectMapper defaultDynamoDBObjectMapper]; AWSDynamoDBScanExpression *scanExpression = [AWSDynamoDBScanExpression new]; scanExpression.exclusiveStartKey = nil; scanExpression.limit = @20; [[[dynamoDBObjectMapper scan:[DDBTableRow class] expression:scanExpression] continueWithExecutor:[BFExecutor mainThreadExecutor] withSuccessBlock:^id(BFTask *task) { ................ I am able to scan through and return the first 20 recorded from a

AWS Cognito integration swift3 Refresh provides ResourceNotFoundException

人盡茶涼 提交于 2019-12-12 05:14:19
问题 Following the answer here: https://github.com/aws/aws-sdk-ios/issues/357 At the very bottom there is a mini guide on getting swift and cognito working. I've made a AWSCustomIdentityProvider as such: import Foundation import AWSCognitoIdentityProvider import AWSCognito class AWSCustomIdentityProvider: NSObject, AWSIdentityProviderManager { private var dict = NSDictionary() func addToken(value:NSString) { dict = ["graph.facebook.com":value] } public func logins() -> AWSTask<NSDictionary> {

Lambda function issue in AWS iOS Sdk

南楼画角 提交于 2019-12-12 04:07:06
问题 I'm new to deal with AWS web services, i'm working with open-identity sending DeveloperAuthProviderName and Token in login dictionary of AWSCognitoCredentialsProvider class and then in a viecontroller i'm invoking a lambda funtion and its giving me error below. I have used CognitoSyncDemo App and also tried with importing all frameworks through pod but result is same. Please help me out of this. AWSiOSSDKv2 [Error] AWSCredentialsProvider.m line:435 | __73-[AWSCognitoCredentialsProvider

AWS SES sending mail with attachement using Amazon iOS SDK

人走茶凉 提交于 2019-12-11 06:37:45
问题 Does anyone know how to send a mail with an attachment using Amazon SES with the iOS SDK. 回答1: To send an email with SES using the iOS SDK you need to create a AWSSESSendRawEmailRequest and make sure that the rawMessage (AWSSESRawMessage) data format complies with Internet email standards regarding email header fields, MIME types, MIME encoding, and base64 encoding. This means converting the NSData of your attachment to a base64 string and inserting it in the raw email string with all the

pod update results in “duplicate interface definition for class xxx” for all AWS SDK (El Capitan + XCode 7)

╄→гoц情女王★ 提交于 2019-12-07 05:09:47
问题 Just now, I updated my AWS SDK pods, which I regretted so much. I first saw this when pods were being updated: dyld: warning, LC_RPATH @executable_path/../../../../../../../SharedFrameworks in /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/../../..//DVTInstrumentsFoundation.framework/Versions/A/DVTInstrumentsFoundation being ignored in restricted program because of @executable_path dyld: warning, LC_RPATH @executable_path/../lib in /Applications/Xcode.app