cloud_functions_tvos
The tvOS implementation of cloud_functions.
Ported with
flutter-tvos plugin portfromcloud_functions6.3.3, then finished + verified by hand. SeePORTING_REPORT.md.
Usage
Federated plugin implementation — no imports needed from app code; it registers
automatically. Apps that already use cloud_functions and target tvOS add:
dependencies:
cloud_functions: ^6.3.3
cloud_functions_tvos: ^0.0.2
firebase_core: ^4.11.0
firebase_core_tvos: ^0.0.4 # tvOS core (this package depends on it)
Version alignment matters. This package's native code matches the
firebase_core_platform_interface7.1.0 train (firebase_core 4.11.x). Keep your whole Firebase stack on one consistent FlutterFire release, or DartinitializeApp(options:)can crash inCoreFirebaseOptions.fromListat launch (aFirebaseOptionsfield-count mismatch).
Status
| Platform | Implemented | Verified |
|---|---|---|
Apple TV (appletvos) |
yes | ✅ verified on a physical Apple TV 4K (tvOS 26.6, release/AOT) — a callable function round-tripped against a live Firebase project |
Apple TV simulator (appletvsimulator) |
yes | ✅ verified — same callable round-trip |
Full cloud_functions API is available on tvOS (callable functions +
streaming callables, httpsCallable, region/emulator selection), no feature
disables. Streaming requires tvOS 15+ (the pod floor).
Swift Package Manager
This package ships a tvos/Package.swift. flutter-tvos links a plugin that
ships tvos/Package.swift through Swift Package Manager and leaves it out of
the Podfile. No manual setup is needed. It depends on firebase_core_tvos
0.0.4, which ships one too, and takes firebase-ios-sdk ~> 12.15.0, as in the
podspec.
Needs flutter-tvos 1.3.0 or later, the first release that links plugins through
SwiftPM, places them side by side (so ../firebase_core_tvos and
../FlutterFramework resolve) and leaves them out of the Podfile.
License
fluttertv under a BSD-3-Clause license. See LICENSE for the full text.