Saltar al contenido

iOS Live Activity schemas configuration

Este contenido aún no está disponible en su idioma.

A Live Activity schema describes the content-state fields of one ActivityAttributes type your iOS app declares, so a journey’s Live Activity element can build a form from named fields instead of raw JSON. Publish one version per widget in the Control Panel.

Publish a schema version

Anchor link to
  1. Open the Configure platforms page of your application in Pushwoosh.
  2. Click Live Activity schemas next to the iOS platform.

Live Activity schemas entry for the iOS platform on the Configure platforms page

  1. Click Publish version.
  2. Enter the Attributes type: the exact name of the ActivityAttributes type in your app, for example FlightAttributes.
  3. In Content-state JSON Schema, enter the JSON Schema for that type’s ContentState — the fields that change while the activity runs, like a flight’s gate or status. Don’t include ActivityAttributes’ own fixed fields here. See Writing a schema.

Publish a schema version dialog with Attributes type set to FlightAttributes and a content-state JSON Schema for gate, status, and estimatedTime

  1. Click Publish.

Manage existing schemas

Anchor link to

On the same Live Activity schemas screen:

  • Click View JSON next to a version to see its published schema.
  • Click Delete to remove a version. This can’t be undone, and a journey element still set to that version stops rendering its content-state fields.

Use the schema in a journey

Anchor link to

Once published, select it under Widget in a journey’s Live Activity element — its content-state fields appear under Card content.