From the course: Learning Apple tvOS App Development

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Communicate with URL schemes

Communicate with URL schemes

From the course: Learning Apple tvOS App Development

Start my 1-month free trial

Communicate with URL schemes

- [Tutor] When we have a look at our project, then there are two targets. We do have our main application, that looks like this and we also have our extension, which is a ServiceProvider, that provides the Apple TV home screen with these two nice, TopShelf items and because we are not within one app, we actually need to use techniques of inter app communication to communicate which item we actually pressed and the way to do that is by using URL schemes and we can create our own URL scheme in info plist, so what happens now is that every time we press on one of those items, the TopShelf extension sends a URL back to our main application, our main application listens for this specific URL scheme and decides if we have pressed this TopShelf item or the right TopShelf item, but in order for this to work, we need to define this URL scheme and we can do that in the info plist. So I right-click here again in the info plist of the main application, not our TopShelf extension and I'm adding a…

Contents