1
我正在使用移動中心和Amazon Cognito通過使用Facebook提供程序對用戶進行身份驗證。一旦使用Facebook登錄,我需要檢查這是否是第一次登錄到應用程序。如果這是我第一次需要獲取一些信息,並且它已經註冊到應用程序,我需要從dynamoDB獲取與用戶相關的一些信息。我想知道如果用戶第一次登錄到應用程序,最好的方法是什麼。如何檢查用戶是否第一次登錄AWS Cognito?
#import <AWSMobileHubHelper/AWSMobileHubHelper.h>
@implementation UserIdentityAccess
- (NSString *)getUserIdentity {
return [AWSIdentityManager defaultIdentityManager].identityId;
}