RocketChat / Rocket.Chat.Cordova

Rocket.Chat Cross-Platform Mobile Application via Cordova (DEPRECATED)
MIT License
104 stars 109 forks source link

Issue To run Rocket.chat.cordova in iOS 10 #147

Open StevenApple opened 7 years ago

StevenApple commented 7 years ago

Hi, After many hours research, i found out there is a bug to run Rocket.chat.cordova in IOS 10. It works fine in iOS 9 but in iOS 10 i can not connect with web socket.

Here is i found a link https://github.com/AppWorkshop/meteor-ios10-csp-fix how to fix the issue but i am not sure, if it works. can some help :) But what i am sure but not 100% is a metro bug.

Here is the message:

2016-10-26 15:18:52.493089 Rocket.Chat[90980:1520685] [] nw_socket_handle_socket_event Event mask: 0x1007
2016-10-26 15:18:52.493581 Rocket.Chat[90980:1520685] [] nw_socket_handle_socket_event Socket received CONNRESET event
2016-10-26 15:18:52.493900 Rocket.Chat[90980:1520685] [] nw_socket_handle_socket_event Socket received DISCONNECTED event
2016-10-26 15:18:52.494307 Rocket.Chat[90980:1520685] [] nw_endpoint_flow_protocol_error [2.1 192.241.136.4:443 ready socket-flow (satisfied)] Socket protocol sent error: [54] Connection reset by peer
2016-10-26 15:18:52.495035 Rocket.Chat[90980:1520685] [] nw_endpoint_flow_protocol_disconnected [2.1 192.241.136.4:443 ready socket-flow (satisfied)] Output protocol disconnected
2016-10-26 15:18:52.495527 Rocket.Chat[90980:1520685] [] nw_endpoint_resolver_receive_report [2 demo.rocket.chat:443 ready resolver (satisfied)] received child report:[2.1 192.241.136.4:443 failed socket-flow (satisfied)]
2016-10-26 15:18:52.495997 Rocket.Chat[90980:1520685] [] nw_connection_endpoint_report [2.1 192.241.136.4:443 failed socket-flow (satisfied)] reported event flow:disconnect, error Error Domain=kNWErrorDomainPOSIX Code=54 "Connection reset by peer" UserInfo={NSDescription=Connection reset by peer}
2016-10-26 15:18:52.496328 Rocket.Chat[90980:1520685] [] nw_connection_endpoint_report [2 demo.rocket.chat:443 failed resolver (satisfied)] reported event flow:disconnect
2016-10-26 15:18:52.514643 Rocket.Chat[90980:1521862] [] __tcp_connection_start_block_invoke 2 sending event TCP_CONNECTION_EVENT_DISCONNECTED in response to state failed and error Error Domain=kNWErrorDomainPOSIX Code=54 "Connection reset by peer" UserInfo={NSDescription=Connection reset by peer}
2016-10-26 15:18:52.515079 Rocket.Chat[90980:1521862] [] tcp_connection_event_notify 2 event: TCP_CONNECTION_EVENT_DISCONNECTED, reason: nw_connection event, should deliver: true
2016-10-26 15:18:52.515471 Rocket.Chat[90980:1521862] [] nw_connection_write_close 2 Connection is not ready, sending error callback
2016-10-26 15:18:52.515922 Rocket.Chat[90980:1521862] [] tcp_connection_cancel 2
2016-10-26 15:18:52.516321 Rocket.Chat[90980:1520685] [] nw_endpoint_handler_cancel [2 demo.rocket.chat:443 failed resolver (satisfied)]
2016-10-26 15:18:52.516598 Rocket.Chat[90980:1521862] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [57] Socket is not connected
2016-10-26 15:18:52.517014 Rocket.Chat[90980:1520685] [] nw_endpoint_handler_cancel [2.1 192.241.136.4:443 failed socket-flow (satisfied)]
2016-10-26 15:18:52.517404 Rocket.Chat[90980:1520685] [] nw_resolver_cancel_on_queue 0x608000115690
2016-10-26 15:18:52.517798 Rocket.Chat[90980:1520685] [] -[NWConcrete_tcp_connection dealloc] 2
TheReal1604 commented 7 years ago

Your reported bug could be the base issue for this:

https://github.com/RocketChat/Rocket.Chat.Cordova/issues/137