{"action":"created","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/102","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/102/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/102/events","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/102","id":93285213,"number":102,"title":"QuickBlox : Error while trying to login into QBChat in iOS 9","user":{"login":"hagile","id":11436406,"avatar_url":"https://avatars.githubusercontent.com/u/11436406?v=3","gravatar_id":"","url":"https://api.github.com/users/hagile","html_url":"https://github.com/hagile","followers_url":"https://api.github.com/users/hagile/followers","following_url":"https://api.github.com/users/hagile/following{/other_user}","gists_url":"https://api.github.com/users/hagile/gists{/gist_id}","starred_url":"https://api.github.com/users/hagile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagile/subscriptions","organizations_url":"https://api.github.com/users/hagile/orgs","repos_url":"https://api.github.com/users/hagile/repos","events_url":"https://api.github.com/users/hagile/events{/privacy}","received_events_url":"https://api.github.com/users/hagile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-06T13:59:15Z","updated_at":"2015-07-14T19:41:20Z","closed_at":null,"body":"I'm trying to login into QuickBlox Chat (QBChat) but couldn't login into iOS9 (running via XCode7 beta). It was working great in iOS 7 and 8. An error logs the following in debug console:\r\n\r\n2015-07-06 17:56:47.464 MyApp[25156:251907] xmppStreamDidConnect\r\n2015-07-06 17:56:47.464 MyApp[25156:251907] -[QBChat xmppStreamDidConnect:] -> Trying TLS...\r\n2015-07-06 17:56:47.910 MyApp[25156:251916] -[QBChat xmppStreamDidDisconnect:withError:] -> error: \r\nError Domain=kCFStreamErrorDomainSSL Code=-9850 \"The operation couldn’t be completed.\r\n(kCFStreamErrorDomainSSL error -9850.)\" UserInfo=0x7f9dd962e430 \r\n{NSLocalizedRecoverySuggestion=Error code definition can be found in Apple's \r\nSecureTransport.h}\r\nToday, I've updated my QuickBlox iOS SDK from 2.2 to 2.3. So I've setup everything as per they want.\r\n\r\nNote, I'm able to create session but couldn't able to login into QBChat.\r\n\r\nHere's my sample code:\r\n\r\n    QBSessionParameters *parameters = [QBSessionParameters new];\r\n    parameters.userLogin = ...;\r\n    parameters.userPassword = ...;\r\n    \r\n    [QBRequest createSessionWithExtendedParameters:parameters successBlock:^(QBResponse *response, QBASession *session) {\r\n        DLog(@\"Success\");\r\n        \r\n        QBUUser *user = [QBUUser user];        \r\n        user.ID = ...;\r\n        user.password = ...;\r\n\r\n        [[QBChat instance] addDelegate:self];\r\n        \r\n        [[QBChat instance] setAutoReconnectEnabled:YES];\r\n        \r\n        BOOL requestQBChatLogin = [[QBChat instance] loginWithUser:user];\r\n        if(!requestQBChatLogin) {\r\n            //This will never prints in logs\r\n            DLog(@\"Something went wrong while sending request for QBChatLogin.\");\r\n        }\r\n        \r\n    } errorBlock:^(QBResponse *response) {\r\n        DLog(@\"Error: %@\", response.error);\r\n    }];\r\n\r\n    -(void) chatDidLogin{\r\n        //This will never call\r\n        DLog(@\"You have successfully signed in to QuickBlox Chat!\");\r\n    }\r\n    \r\n    - (void) chatDidNotLogin {\r\n        //This will never call\r\n        DLog(@\"You have not signed in to QuickBlox Chat!\");\r\n    }\r\n\r\nPlease make sure that – I've added proper values for userName or ID or password as and when require."},"comment":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/comments/121353217","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/102#issuecomment-121353217","issue_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/102","id":121353217,"user":{"login":"soulfly","id":373137,"avatar_url":"https://avatars.githubusercontent.com/u/373137?v=3","gravatar_id":"","url":"https://api.github.com/users/soulfly","html_url":"https://github.com/soulfly","followers_url":"https://api.github.com/users/soulfly/followers","following_url":"https://api.github.com/users/soulfly/following{/other_user}","gists_url":"https://api.github.com/users/soulfly/gists{/gist_id}","starred_url":"https://api.github.com/users/soulfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soulfly/subscriptions","organizations_url":"https://api.github.com/users/soulfly/orgs","repos_url":"https://api.github.com/users/soulfly/repos","events_url":"https://api.github.com/users/soulfly/events{/privacy}","received_events_url":"https://api.github.com/users/soulfly/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T19:41:20Z","updated_at":"2015-07-14T19:41:20Z","body":"You can temporary disable Chat TLS for now\r\n\r\n[QBSettings useTLSForChat:NO];\r\n\r\nThis fix will be released in a next iOS SDK release "}}