We are integrating Microsoft office 365 with Keycloak Identity Server where we are facing an issue while building an IOS APP
The same build Android is Working fine but while running on IOS I am getting the this below error
2019-05-29 17:19:58.682617+0530 AttraLIVE[38809:642378] [] nw_socket_handle_socket_event [C13.1:2] Socket SO_ERROR [61: Connection refused]
2019-05-29 17:19:58.685005+0530 AttraLIVE[38809:642378] [] nw_socket_handle_socket_event [C13.2:2] Socket SO_ERROR [61: Connection refused]
2019-05-29 17:19:58.685736+0530 AttraLIVE[38809:642378] TIC TCP Conn Failed [13:0x600000c6c480]: 1:61 Err(61)
2019-05-29 17:19:58.689168+0530 AttraLIVE[38809:642378] Task <9D4D3BBD-656E-4B84-AD79-1672229058CB>.<0> HTTP load failed (error code: -1004 [1:61])
2019-05-29 17:19:58.690264+0530 AttraLIVE[38809:642378] NSURLConnection finished with error - code -1004
2019-05-29 17:19:58.706103+0530 AttraLIVE[38809:642159] ERROR: Error initalizing Keycloak in main.ts Error: No NgModule metadata found for ‘function (){}’.
2019-05-29 17:19:58.708662+0530 AttraLIVE[38809:642159] webView:didFailLoadWithError - -1004: Could not connect to the server.
2019-05-29 17:21:47.670971+0530 AttraLIVE[38809:643524] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x7fd8e5f1d670] get output frames failed, state 8196
2019-05-29 17:21:47.671170+0530 AttraLIVE[38809:643524] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x7fd8e5f1d670] get output frames failed, state 8196
2019-05-29 17:21:47.672004+0530 AttraLIVE[38809:643524] TIC Read Status [1:0x0]: 1:57
2019-05-29 17:21:47.672131+0530 AttraLIVE[38809:643524] TIC Read Status [1:0x0]: 1:57
2019-05-29 17:21:48.588899+0530 AttraLIVE[38809:643524] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C5.1:2][0x7fd8e5f2d750] get output frames failed, state 8196
2019-05-29 17:21:48.589294+0530 AttraLIVE[38809:643524] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C5.1:2][0x7fd8e5f2d750] get output frames failed, state 8196
2019-05-29 17:21:48.589714+0530 AttraLIVE[38809:643524] TIC Read Status [5:0x0]: 1:57
2019-05-29 17:21:48.589810+0530 AttraLIVE[38809:643524] TIC Read Status [5:0x0]: 1:57
2019-05-29 17:22:02.464466+0530 AttraLIVE[38809:643526] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C14.1:2][0x7fd8e5f2c1d0] get output frames failed, state 8196
2019-05-29 17:22:02.464643+0530 AttraLIVE[38809:643526] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C14.1:2][0x7fd8e5f2c1d0] get output frames failed, state 8196
2019-05-29 17:22:02.465100+0530 AttraLIVE[38809:643526] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C15.1:2][0x7fd8e5f6b970] get output frames failed, state 8196
2019-05-29 17:22:02.465273+0530 AttraLIVE[38809:643526] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C15.1:2][0x7fd8e5f6b970] get output frames failed, state 8196
2019-05-29 17:22:02.465589+0530 AttraLIVE[38809:643526] TIC Read Status [14:0x0]: 1:57
2019-05-29 17:22:02.465741+0530 AttraLIVE[38809:643526] TIC Read Status [14:0x0]: 1:57
2019-05-29 17:22:02.466111+0530 AttraLIVE[38809:643526] TIC Read Status [15:0x0]: 1:57
2019-05-29 17:22:02.466236+0530 AttraLIVE[38809:643526] TIC Read Status [15:0x0]: 1:57
2019-05-29 17:23:47.682834+0530 AttraLIVE[38809:644073] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x7fd8e5c33fb0] get output frames failed, state 8196
2019-05-29 17:23:47.683078+0530 AttraLIVE[38809:644073] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x7fd8e5c33fb0] get output frames failed, state 8196
2019-05-29 17:23:47.683438+0530 AttraLIVE[38809:644073] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x7fd8e5c3e9f0] get output frames failed, state 8196
2019-05-29 17:23:47.683613+0530 AttraLIVE[38809:644073] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x7fd8e5c3e9f0] get output frames failed, state 8196
I tried many ways in most of the forum I have seen its related ATS network related issue to overcome that I added below code into info.plist
NSAppTransportSecurity
NSAllowsArbitraryLoads
NSExceptionDomains
NSIncludesSubdomains
NSExceptionAllowsInsecureHTTPLoads
NSExceptionMinimumTLSVersion
TLSv1.1
But still no luck we are getting the same error