2

大家好,在 iOS 中用于 GPlus AWSCognito 登录的 AmazonClientManager 中的 resumeSessionWithCompletionHandler 遇到了一些问题。但同样的恢复会话适用于 Facebook 登录。你能帮我解决这个问题吗?这是我在iOS中使用的代码,

 [[AmazonClientManager sharedInstance] googleLoginFromView:self
           withCompletionHandler:^id(AWSTask *task) {
                dispatch_async(dispatch_get_main_queue(), ^{   
                   [[AmazonClientManager sharedInstance]
                         resumeSessionWithCompletionHandler:^id(AWSTask *task) {
                               dispatch_async(dispatch_get_main_queue(), ^{ 
                                   // Dataset successfully refreshed
                                   // Refresh your credentials here
                               }); 
                           return nil; 
                    }];

            }); return nil;

  }];

如果您有解决此问题的想法,这将对我有所帮助。

4

0 回答 0