rsattar / Voucher

A simple library to make authenticating tvOS apps easy via their iOS counterparts.
MIT License
516 stars 34 forks source link

Not getting authorization request in IOS device immediately #13

Open bc1213 opened 4 years ago

bc1213 commented 4 years ago

I'm running this code of both the tvos and ios app in the simulator. In logs of the tvos app its showing this error NSStreamErrorOccurred (fallthrough)

And after one minute i'm getting Authrization request in IOS device.

am i missing something ?

2020-01-25 12:28:18.180661+0530 Voucher tvOS App[68664:767659] Browser will search 2020-01-25 12:28:25.085173+0530 Voucher tvOS App[68664:767659] Browser found service: iPhone 11 Pro Max, more coming: NO 2020-01-25 12:29:40.464556+0530 Voucher tvOS App[68664:778604] [] nw_socket_handle_socket_event [C5.1.1:1] Socket SO_ERROR [60: Operation timed out] 2020-01-25 12:29:40.466096+0530 Voucher tvOS App[68664:779648] [] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection 2020-01-25 12:29:40.466587+0530 Voucher tvOS App[68664:779648] TCP Conn 0x6000010eda40 Failed : error 0:60 [60] 2020-01-25 12:29:40.466913+0530 Voucher tvOS App[68664:767659] NSStreamErrorOccurred (fallthrough) 2020-01-25 12:29:40.467225+0530 Voucher tvOS App[68664:767659] NSStreamEventEndEncountered 2020-01-25 12:29:40.467374+0530 Voucher tvOS App[68664:767659] => Input Stream 2020-01-25 12:30:56.072708+0530 Voucher tvOS App[68664:779650] [] nw_socket_handle_socket_event [C6.1.1:1] Socket SO_ERROR [60: Operation timed out] 2020-01-25 12:30:56.073919+0530 Voucher tvOS App[68664:780808] [] nw_connection_get_connected_socket [C6] Client called nw_connection_get_connected_socket on unconnected nw_connection 2020-01-25 12:30:56.074235+0530 Voucher tvOS App[68664:780808] TCP Conn 0x6000010e1080 Failed : error 0:60 [60] 2020-01-25 12:30:56.074448+0530 Voucher tvOS App[68664:767659] NSStreamErrorOccurred (fallthrough) 2020-01-25 12:30:56.074604+0530 Voucher tvOS App[68664:767659] NSStreamEventEndEncountered 2020-01-25 12:30:56.074772+0530 Voucher tvOS App[68664:767659] => Input Stream 2020-01-25 12:30:56.310391+0530 Voucher tvOS App[68664:767659] Input stream open 2020-01-25 12:30:56.310522+0530 Voucher tvOS App[68664:767659] Output stream open 2020-01-25 12:30:56.310635+0530 Voucher tvOS App[68664:767659] Output stream has space available 2020-01-25 12:30:56.310846+0530 Voucher tvOS App[68664:767659] Sent 295 bytes 2020-01-25 12:30:56.310947+0530 Voucher tvOS App[68664:767659] Finished sending whole data buffer 2020-01-25 12:30:56.311054+0530 Voucher tvOS App[68664:767659] Output stream has space available