inaka / ios-xmpp-sample

Blog post sample project.
https://www.erlang-solutions.com/blog/build-a-complete-ios-messaging-app-using-xmppframework-tutorial-part-1.html
33 stars 15 forks source link

Signing in forever... no errors in console at all #4

Closed holocron closed 6 years ago

holocron commented 6 years ago

i have just logs below and that's it. able to connect to the same server with the same credentials from node.js project. any suggestions how to find the problem?

2018-06-09 17:08:10.413811+0200 CrazyMessages[34354:1337937] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/holocron/Library/Developer/CoreSimulator/Devices/67A1B1EA-8D2F-4B3D-BF1E-F31057B5E84A/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2018-06-09 17:08:10.416753+0200 CrazyMessages[34354:1337937] [MC] Reading from private effective user settings. 2018-06-09 17:08:30:410 CrazyMessages[34354:1339551] SEND: <?xml version='1.0'?> 2018-06-09 17:08:30:446 CrazyMessages[34354:1339551] SEND: 2018-06-09 17:08:30:522 CrazyMessages[34354:1339762] RECV: 2018-06-09 17:08:30:538 CrazyMessages[34354:1339552] RECV: </stream:features> 2018-06-09 17:08:30:539 CrazyMessages[34354:1339552] SEND: 2018-06-09 17:08:30:570 CrazyMessages[34354:1339552] RECV: 2018-06-09 17:08:30:571 CrazyMessages[34354:1339552] SEND:

aliimran commented 6 years ago

@holocron I am facing the same issue. It keeps on loading forever. Did you find any solution?

holocron commented 6 years ago

@aliimran hi, yes, resolved. the problem was in certificate. i've added simple bypassing check to test and it worked func xmppStream(_ sender: XMPPStream?, didReceive trust: SecTrust?, completionHandler: @escaping (_ shouldTrustPeer: Bool) -> Void) { completionHandler(true) } strange that it silently dies somewhere...