Подтвердить что ты не робот

G + sdk дает ошибку входа?

Я реализовал Google Plus Api и логин, как он указан на сайте. Но это вызывает проблемы после входа в систему, когда я нажимаю "Разрешить доступ", как показано ниже:

enter image description here

Появится следующее сообщение:

enter image description here

Мой код выглядит следующим образом: pls tell me Если что-то осталось:

    - (void)viewDidLoad
{
 self.signInButton.delegate = self;
 self.signInButton.clientID = kClientId;
 self.signInButton.scope = [NSArray arrayWithObjects:
                            @"https://www.googleapis.com/auth/plus.me",
                            nil];

 SLNetworkAppDelegate *appDelegate = (SLNetworkAppDelegate*)
 [[UIApplication sharedApplication] delegate];
 appDelegate.signInButton = self.signInButton;

 share =[[GPPShare alloc] initWithClientID:kClientId];
 share.delegate = self; // optional
 appDelegate.share=share;

    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (IBAction) didTapShare: (id)sender {
 [[[[share shareDialog]
    setURLToShare:[NSURL URLWithString:@"https://developers.google.com/+/mobile/ios/getting-started"]]
   setPrefillText:@"testing share via google plus"] open];

 // Or, without a URL or prefill text:
 [[share shareDialog] open];
}


In App delegate file:

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
 if ([signInButton handleURL:url
           sourceApplication:sourceApplication
                  annotation:annotation]) {
  return YES;
 }
 if ([self.share handleURL:url
         sourceApplication:sourceApplication
                annotation:annotation]) {
  return YES;
 }
 return NO;
}
4b9b3361

Ответ 1

Вы должны назначить перенаправление uri в своем проекте с помощью идентификатора вашего пакета, так что после успешной аутентификации ваше приложение будет запущено с сафари, если ваш дескриптор вашего URL правильно:

enter image description here

Разместите идентификатор пакета как идентификатор и URLSchemes...