Over a million developers have joined DZone.

Local Storage on the New Apple TV

Use locally stored credentials to authenticate your tvOS apps to remote service

· IoT Zone

Access the survey results 'State of Industrial Internet Application Development' to learn about latest challenges, trends and opportunities with Industrial IoT, brought to you in partnership with GE Digital.

Unlike iOS, Apple's new tvOS does not provide support for persistent local storage. From Apple's App Programming Guide for tvOS:


There is no persistent local storage for apps on Apple TV. This means that every app developed for the new Apple TV must be able to store data in iCloud and retrieve it in a way that provides a great customer experience.

iCloud might be fine for iOS-only apps, but it doesn't work if you also need to support other platforms such as Android.

Fortunately, Apple apparently does provide a limited form of persistent storage on the new Apple TV. The Keychain can be used to store user credentials, which in theory can be used to authenticate the user to remote, non-iCloud services. See this discussion in the Apple developer forums:

https://forums.developer.apple.com/thread/18302

Thanks to developer forum user TidBits for this very valuable piece of information!

The IoT Zone is brought to you in partnership with GE Digital.  Discover how IoT developers are using Predix to disrupt traditional industrial development models.

Topics:
icloud ,android ,web services ,ios ,mobile ,iot

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}