I make a free TV remote app. The Android version has been out for a while, and on November 18 the iPhone and iPad version went live on the App Store. It controls Samsung, LG, Sony BRAVIA, VIZIO, Android TV and Google TV, and you don't have to pick a brand first.
The hardest part wasn't the buttons. It was finding the TV.
One TV, three ways to say "I'm here"
TVs announce themselves on the local network in different ways:
SSDP (UDP multicast on 239.255.255.250:1900). The app sends M-SEARCH and also listens for NOTIFY . Samsung answers as a remotecontrolreceiver , LG webOS as webos-second-screen .
mDNS / Bonjour . Android TV and Google TV publish _androidtvremote2._tcp , Chromecast-capable TVs _googlecast._tcp , and VIZIO _viziocast._tcp .
Nothing at all . Some TVs stay quiet until you knock.
So the app runs all three at once and merges the results by IP.
iOS adds its own wall
On iOS, sending multicast needs a special entitlement, and some routers drop multicast entirely.…