Home

Awesome

TriplePlay

A demo of a better authentication flow for tvOS apps using iOS

For more background, read the blog post


Running the iOS app

In your terminal:

  1. Go into the iOS directory: cd iOS/TriplePlay
  2. Install Cocoapods: pod install
  3. Open project in Xcode: open TriplePlay.xcworkspace

The build and run the app from Xcode.

Running the tvOS app

In your terminal:

  1. Go into the iOS directory: cd tvOS/Timehop
  2. Install Cocoapods: pod install
  3. Open project in Xcode: open Timehop.xcworkspace

The build and run the app from Xcode.

Security Disclaimer

In practice, you wouldn't actually want to pass the authentication token. In this example, anyone listening for the _timehop_auth._tcp. would be able to grab the (potentially sensitive) data you're passing to the tvOS app.

Some alternate flows could be:

LICENSE

MIT. See LICENSE