openairplay / AirPlayAuth-ObjC

AirPlayAuth-ObjC
12 stars 5 forks source link

Device Authentication screen is not showing in AppleTV #2

Open gnanavadiveluit opened 7 years ago

gnanavadiveluit commented 7 years ago

Invoked startPairing method to make authorisation, it is happening.

CLIENT -> SERVER: POST /pair-pin-start User-Agent: AirPlay/320.20 X-Apple-Device-ID: a8:86:dd:b2:bd:37 Content-Length: 0

2017-06-16 16:01:31.755218 AirPlayAuth[17241:227416] [] __nw_connection_get_connected_socket_block_invoke 1 Connection has no connected handler 2017-06-16 16:01:31.755381 AirPlayAuth[17241:226004] An error has occurred on the stream. 2017-06-16 16:01:31.757021 AirPlayAuth[17241:226004] An error has occurred on the stream.

ViktoriiaKh commented 7 years ago

@gnanavadiveluit, thank you for reporting the issue. This project needs a lot of improvements. There is no check whether the device verification is enabled (it is expected to be enabled now). Some settings are hard-coded (the “AirPlay > Security” option is expected to be “Password” and the password is expected to be 1111).

I will improve it as soon as I can.

mmm117 commented 6 years ago

@ViktoriiaKh , I tried to run it on tvOS 11.4, it seek doesn't work. I already entered the correct PIN.

Do you know why?