Skip to content

Push Notifications & Subscriptions (epic) #379

@leogdion

Description

@leogdion

Goal

Deliver the complete server-side push-notification workflow for CloudKit Web Services: subscriptions (the change triggers) plus APNs tokens (the delivery path). These endpoints are interdependent — a subscription is useless without a registered push destination, and the token endpoints exist solely to feed subscription-triggered pushes — so they ship together as one epic.

Target: v1.0.0-beta.2.

Sub-issues

Subscriptions

APNs Tokens

Scope notes

  • All five endpoints already exist in openapi.yaml with generated client methods in Sources/MistKitOpenAPI/Client.swift.
  • Each gets a CloudKitService method (subscriptions → a new CloudKitService+SubscriptionOperations.swift; tokens → CloudKitService+TokenOperations.swift per Creating APNs Tokens (tokens/create) #52/Registering Tokens (tokens/register) #53), routed through the existing dispatcher + CloudKitService+ErrorHandling.
  • MistDemo wiring is part of the API implementation for each endpoint: replace the existing CLI command stubs and add an integration phase under Examples/MistDemo/Sources/MistDemoKit/Integration/Phases/ so each operation is exercised against a live container.

Acceptance criteria

  • All five CloudKitService methods exist, are documented, and surface errors through CloudKitServiceError.
  • Corresponding mistdemo commands run successfully against a real container.
  • Integration phases cover each endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions