Hello @odyshewroman
Have you ever test this project with more than 1 phones on same smart tv. I did the same thing, I first try to connect first iPhone with same smart TV .
When I connect the TV to the first phone, it connects successfully. However, when I connect the same TV to a second phone, it connects without asking for the secret code and works fine. The issue is that it doesn't prompt for the secret code.
Any idea regarding this issue ?