The SDK on tvOS, visionOS and watchOS
Apple TV apps use the SDK as iOS apps do, from 0.8.0: the same Swift package, which declares tvOS, with the same Swift API. An app for Apple Vision Pro runs the iOS package as an iPad app. An Apple Watch app cannot use the SDK yet. The options, the configuration, the gate, the strings and the errors are the ones of the SDK on iOS; this page is what is different on these platforms. What the SDK does, what the API key allows and how the SDK behaves offline are on the SDK page.
tvOS: Apple TV
The package is squiddy-cloud/squiddy-swift, at version 0.9.0, the same release as on the other platforms. In Xcode, File › Add Package Dependencies…, enter https://github.com/squiddy-cloud/squiddy-swift, choose Up to Next Major Version from 0.9.0, and add the library Squiddy to the tvOS app's target. In a Package.swift:
platforms: [.tvOS(.v15)],
dependencies: [
.package(url: "https://github.com/squiddy-cloud/squiddy-swift", from: "0.9.0"),
],
targets: [
.target(name: "MyTVApp", dependencies: [.product(name: "Squiddy", package: "squiddy-swift")]),
]
| Minimum | tvOS 15, Swift 5.9 |
app_type sent to Squiddy | tvos: an Apple TV app has blocks of its own in a configuration, apart from the iOS app of the same appId |
| Bundle id | the main bundle's identifier |
| Files | Library/Caches/squiddy of the app's container, which tvOS may purge (below) |
| Size | about 5.8 MiB for an Apple TV |
The app initializes the SDK in its application delegate, as an iOS app does (initialize), and the SDK follows the foreground through the same notifications of UIApplication: it checks at every start, whenever the app comes back to the foreground and, with a refreshInterval, at that interval while it stays there.
A block for tvos in the configuration
An Apple TV app declares tvos, so a configuration serves it only from an API block whose appTypes has tvos, or all. A configuration whose blocks name only the phones refuses it with 5001 (IncompleteConfiguration): add a block for the Apple TV, or tvos to an existing block, before the app ships.
"api": [
{ "appTypes": ["tvos"], "...": "..." },
{ "appTypes": ["ios", "android"], "...": "..." }
]
The notices (appUpdate, inFoPoint) match appTypes the same way, so an update or a maintenance meant for the Apple TV names tvos too. The format of a configuration has every field of a block.
The files tvOS may purge
tvOS gives an app no storage of its own that lasts: on an Apple TV an app may write only to its caches and its temporary directory, and tvOS may empty them while the app is not running and the device runs out of space. The SDK keeps its files in Library/Caches/squiddy, so after a purge the app starts as a new installation: with no stored configuration until its first check, which needs the network, and with a new installation id, so a percentage rollout may place it elsewhere. An app that needs a stable placement passes its own entityId (rollouts), the id of the signed-in account for instance, which the SDK sends as given and never stores.
Push update
The path of the push update is the one of iOS (push update on iOS): the Push Notifications capability and an APNs key, the Apple TV app registered in the Firebase project with its bundle id, the FirebaseMessaging product, UIApplication.shared.registerForRemoteNotifications(), the APNs token handed to Messaging, the subscription to pushTopic, and the notification passed to handlePush from application(_:didReceiveRemoteNotification:fetchCompletionHandler:). Firebase lists tvOS among its Apple platforms in beta. Apple delivers remote notifications to devices: test it on an Apple TV.
visionOS: Apple Vision Pro
Kotlin has no target for visionOS, so the package has no visionOS slice, and a native visionOS build stops at the package («While building for visionOS, no library for this platform was found»). An app for Apple Vision Pro uses the package as an iPad app: in Xcode, the iOS app's target with the destination Apple Vision Pro (Designed for iPad). It runs the iOS slices unchanged, as on an iPad, so everything on the iOS page applies to it: it declares ios, keeps its files in Library/Application Support/squiddy, and reads the same blocks of a configuration as the iPhone and iPad app.
An app built with the iOS 27 SDK needs the scene life cycle (UIScene) to start on Apple Vision Pro, Squiddy or not: «UIScene life cycle is required for apps built with this SDK».
watchOS: Apple Watch
The SDK does not support watchOS yet. Its code needs the runtime of Wire, the library that reads and writes the messages of Squiddy's contract, and Wire publishes no version of its runtime for watchOS; every other library the SDK uses does. watchOS will come in a later version of the SDK, once Wire publishes it.
Until then, a watch app that needs a value of the configuration can receive it from its iPhone app, which reads it with the SDK, through WatchConnectivity; or make the data-plane call itself, as in the Swift example, without what the SDK adds: no stored configuration, no conditional requests, no gate.