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];
}];