Skip to content

Port firebase_in_app_messaging to tvOS #15

Open

Description

@TheNoumanDev

Tracking a tvOS port of firebase_in_app_messaging. Findings from the Firebase Apple SDK:

Headless engine works on tvOS. FirebaseInAppMessaging.podspec builds for tvOS (s.tvos.deployment_target = '15.0', s.tvos.source_files) — campaign fetch, trigger evaluation and analytics all compile and run. The Dart API (triggerEvent, setMessagesSuppressed, setAutomaticDataCollectionEnabled) ports with the standard federated recipe.

The default display UI is iOS-only. The tvOS source_files omit Sources/DefaultUI/** (the card / modal / banner view controllers), and the display resources are declared under s.ios.resource_bundles only (no s.tvos.resource_bundles). So the engine can trigger a message, but there is no built-in renderer on tvOS — nothing draws.

What a full port needs (self-contained in the _tvos package). Firebase already exposes a native display hook — FIRInAppMessaging.inAppMessaging().messageDisplayComponent — which receives the full message and is responsible for rendering it (the slot DefaultUI fills on iOS). So firebase_in_app_messaging_tvos would register a native, focus-based tvOS display component that draws the message with tvOS UIKit — the same auto-display behaviour as iOS, adapted for the 10-foot TV UI. No changes to the upstream plugin, the platform interface, or app code; the message data stays native.

Summary: the headless port is mechanical, but making messages actually show requires implementing the tvOS UI layer inside the _tvos package (view controllers for banner / modal / card / image-only). Documenting for visibility.

Activity

  1. changed the title [-]firebase_in_app_messaging on tvOS — needed?[/-] [+]Port firebase_in_app_messaging to tvOS[/+] on Aug 13, 2026
  2. MAUstaoglu commented on Nov 18, 2026

    @MAUstaoglu
    Member

    Thanks, I checked the same points and they hold.

    firebase-ios-sdk's FirebaseInAppMessaging podspec has a tvOS deployment target (15.0), but its tvOS source_files leave out Sources/DefaultUI, and the display resources are under s.ios.resource_bundles only. In Package.swift the FirebaseInAppMessaging-Beta product builds for iOS and tvOS, and FirebaseInAppMessaging_iOS, the default UI, is iOS-only. FIRInAppMessaging is marked unavailable on macOS and watchOS, not tvOS, and has the messageDisplayComponent property you describe. So the engine side is available on tvOS and a message would have to be drawn by our own display component.

    Two other things. The upstream plugin only declares android and ios, so there is no tvOS implementation to port, only to write. And the current upstream release, firebase_in_app_messaging 0.10.2, requires firebase_core ^5.1.0, while firebase_core_tvos is still on firebase_core ^4.13.0 (see #38), so a port of the current plugin has to wait for that.

    There is no firebase_in_app_messaging_tvos package here and I am not working on one. AUTHORING.md describes the layout of a *_tvos package; contributions are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions