Skip to content

[PC TV] Report tvOS platform in LiveAnalyticsStreamer#4513

Open
kean wants to merge 1 commit into
trunkfrom
kean/tvos-live-analytics-platform
Open

[PC TV] Report tvOS platform in LiveAnalyticsStreamer#4513
kean wants to merge 1 commit into
trunkfrom
kean/tvos-live-analytics-platform

Conversation

@kean

@kean kean commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Fixes PCIOS-727.

The Live analytics adapter is already registered on the tvOS target, but LiveAnalyticsStreamer hardcodes platform: "iOS" — so every event sent from tvOS is mislabeled as iOS.

This resolves the platform string at compile time via #if os(tvOS), mirroring the existing pcios/pctvos split in TracksAdapter. iOS behavior is unchanged.

🤖 Generated with Claude Code

The Live analytics adapter is registered on the tvOS target but hardcoded
platform: "iOS", mislabeling every tvOS event. Resolve the platform at
compile time via #if os(tvOS), matching the TracksAdapter pcios/pctvos split.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 12, 2026 17:45
@kean kean requested a review from a team as a code owner June 12, 2026 17:45
@kean kean requested review from SergioEstevao and removed request for a team June 12, 2026 17:45

@SergioEstevao SergioEstevao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the live analytics debugging adapter so tvOS events are labeled with the correct platform instead of always reporting as iOS, aligning behavior with the existing tvOS/iOS split used elsewhere in analytics.

Changes:

  • Add a compile-time platform constant that resolves to "tvOS" on tvOS builds and "iOS" otherwise.
  • Use the resolved platform constant when constructing AnalyticsEvent payloads.

@kean kean added this to the 8.15 milestone Jun 12, 2026
@kean kean changed the title Report tvOS platform in LiveAnalyticsStreamer [PC TV] Report tvOS platform in LiveAnalyticsStreamer Jun 12, 2026

@SergioEstevao SergioEstevao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While code looks good I'm unable to see the logs on server admin area. Could it be that tvOS needs to be added there?
Where you able to check on the server the events?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants