Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Shared/LiveActivity/LiveActivityRegistry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public actor LiveActivityRegistry: LiveActivityRegistryProtocol {
// MARK: - Webhook Constants (wire-format frozen — tested in LiveActivityContractTests)

/// Webhook type for reporting a new per-activity push token to HA.
static let webhookTypeToken = "mobile_app_live_activity_token"
static let webhookTypeToken = "live_activity_token"
/// Keys in the token webhook request data dictionary.
static let tokenWebhookKeys: Set<String> = ["activity_id", "push_token", "apns_environment"]

/// Webhook type for reporting that a Live Activity was dismissed.
static let webhookTypeDismissed = "mobile_app_live_activity_dismissed"
static let webhookTypeDismissed = "live_activity_dismissed"
Comment thread
rwarner marked this conversation as resolved.
/// Keys in the dismissed webhook request data dictionary.
static let dismissedWebhookKeys: Set<String> = ["activity_id", "live_activity_tag", "reason"]
Comment thread
rwarner marked this conversation as resolved.

Expand Down
4 changes: 2 additions & 2 deletions Tests/Shared/LiveActivity/LiveActivityContractTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ final class LiveActivityContractTests: XCTestCase {
func testWebhookTypeToken_isFrozen() {
XCTAssertEqual(
LiveActivityRegistry.webhookTypeToken,
"mobile_app_live_activity_token"
"live_activity_token"
)
}

Expand All @@ -108,7 +108,7 @@ final class LiveActivityContractTests: XCTestCase {
func testWebhookTypeDismissed_isFrozen() {
XCTAssertEqual(
LiveActivityRegistry.webhookTypeDismissed,
"mobile_app_live_activity_dismissed"
"live_activity_dismissed"
)
}

Expand Down
Loading