У меня встроенный QuickBlox iOS SDK для чата в моем приложении. Но логин не происходит, чтобы получить ошибку в журналеНеудача в интеграции QuickBlox Вход/Регистрация не происходит
[QBCore] Response error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey= https://api.dev.quickblox.com/session.json , NSErrorFailingURLStringKey= https://api.dev.quickblox.com/session.json , NSLocalizedDescription=cancelled} 2016-08-17 16:10:33.207 MediEN[270:54815] [QBCore] Response error reasons: { error = { message = cancelled; }; } 2016-08-17 16:10:33.208 MediEN[270:54815] [QBAuth] Create Session request error: (null) 2016-08-17 16:10:33.221 MediEN[270:54898] [QBCore] Response error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey= https://api.dev.quickblox.com/session.json , NSErrorFailingURLStringKey= https://api.dev.quickblox.com/session.json , NSLocalizedDescription=cancelled} 2016-08-17 16:10:33.222 MediEN[270:54898] [QBCore] Response error reasons: { error = { message = cancelled; }; }
, пожалуйста, введите код для инициализации и регистрации.
[QBSettings setApplicationID:44907];
[QBSettings setAuthKey:@"qha5pegavkq-n-K"];
[QBSettings setAuthSecret:@"BTFsj7Rtt27DAmT"];
[QBSettings setAccountKey:@"Ep97pSstBQ9WQfw"];
[QBSettings setChatDNSLookupCacheEnabled:YES];
[QBSettings setServiceZone:3];
QBUUser *user = [QBUUser user];
user.login = @"kuriakose2";
user.password = @"kuriakose37";
[QBRequest signUp:user successBlock:^(QBResponse * _Nonnull response, QBUUser * _Nullable user)
{
[self showAlertWithMessage:response.debugDescription title:response.description];
} errorBlock:^(QBResponse * _Nonnull response)
{
[self showAlertWithMessage:response.debugDescription title:response.description];
}];