Skip to content

tvOS Web Browser sample project (Private API)

Notifications You must be signed in to change notification settings

Oberto/tvOSBrowser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tvOS Browser

Web browser for tvOS using private API (aka UIWebView). You'll need to redefine the following in Availability.h to build successfully.

Availability.h for the AppleTV is located in Xcode>Contents>Developer>Platforms>AppleTVOS.platform>Developer>SDKs>AppleTVOS.sdk>usr>include
Availability.h for the AppleTV Simulator is located in Xcode>Contents>Developer>Platforms>AppleTVSimulator.platform>Developer>SDKs>AppleTVOS.sdk>usr>include

Change:

#define __TVOS_UNAVAILABLE                    __OS_AVAILABILITY(tvos,unavailable)
#define __TVOS_PROHIBITED                     __OS_AVAILABILITY(tvos,unavailable)

To:

#define __TVOS_UNAVAILABLE_NOTQUITE                    __OS_AVAILABILITY(tvos,unavailable)
#define __TVOS_PROHIBITED_NOTQUITE                     __OS_AVAILABILITY(tvos,unavailable)

Do this for Availability.h for both simulator and device if you want to run it on the real hardware.

How to Use tvOSBrowser

  • Double press on the center of the touch area of the Apple TV Remote to switch between cursor & scroll mode.
  • Press the touch area while in cursor mode to click.
  • Menu will navigate back (like a back button).
  • Pressing the Play/Pause button will let you input URLs, search Google, and reload the page.
  • Double tapping the Play/Pause button or Menu button displays a menu with Favorites, History, set/open homepage, change user agent, clear cache, and clear cookies.

About

tvOS Web Browser sample project (Private API)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%