Перейти к содержанию

How to show flight status on the lock screen

Этот контент еще не доступен на вашем языке.

Show each checked-in passenger gate, status, and timing on the lock screen until the flight lands. This guide builds that journey with the Live Activity element.

Prerequisites

Anchor link to

Create the events

Anchor link to

These are example event names for this guide. When your app or backend sends a name for the first time, Pushwoosh creates that event automatically. Create the events in the Control Panel first only if you want to set attribute types yourself before the first send.

Create (or reuse) the events CheckInCompleted, FlightStatusChanged, and FlightLanded.

Learn more about creating events

Build the journey

Anchor link to

Open Customer Journey Builder, create a campaign, and build everything below on one canvas.

  1. Go to Campaigns → Customer Journey Builder.
  2. Click Create campaign.
  3. Click Build a journey from scratch.

Set the entry

Anchor link to
  1. Add a Trigger-based entry element to the canvas.
  2. Set it to CheckInCompleted.

Trigger-based entry panel with EVENT set to CheckInCompleted

Start the flight card

Anchor link to
  1. Add a Live Activity element after the entry.
  2. Name it Flight card start.
  3. Set Action to Start.
  4. Select the flight Widget and Schema version.

Flight card start with Action set to Start and flight Widget and Schema version selected

  1. Set Card key: event to CheckInCompleted.

Card key: event set to CheckInCompleted

  1. Fill Card content (gate, status, estimatedTime) and the alert fields.

Card content fields gate, status, and estimatedTime filled in, with alert fields below

  1. Click Apply.

Wait and update the card

Anchor link to

Continue on the same canvas after the Start element.

  1. Add a Wait for Trigger element.
  2. Wait for FlightStatusChanged.
  3. Set a waiting period that fits your flight updates.

Wait for Trigger set to FlightStatusChanged with a waiting period

  1. On the branch that fires when the event happens, add a Live Activity element.
  2. Name it Flight card update.
  3. Set Action to Update.
  4. Choose the same Widget and Schema version.

Flight card update with Action set to Update and the same Widget and Schema version selected

  1. Select Flight card start in Card created by.

Card created by set to Flight card start on the Update element

  1. Update Card content.

Card content fields updated on the Flight card update element

  1. Click Apply.

Wait and end the card

Anchor link to

Continue on the same canvas after the Update element.

  1. Add another Wait for Trigger element.
  2. Wait for FlightLanded.

Wait for Trigger set to FlightLanded

  1. On the branch that fires when the event happens, add a Live Activity element.
  2. Name it Flight card end.
  3. Set Action to End.
  4. Choose the same Widget and Schema version.
  5. Select Flight card start in Card created by.

Flight card end with Action set to End, the same Widget and Schema version selected, and Card created by set to Flight card start

  1. Set alert and Dismiss after, min if needed.

Alert fields and Dismiss after, min on the Flight card end element

  1. Click Apply.

Full flight status journey on the canvas with entry, Start, Wait for Trigger, Update, Wait for Trigger, and End

What the passenger sees

Anchor link to

On the lock screen, the passenger gets one Live Activity card that changes as the flight progresses. For example:

Gate B12, status Boarding, estimated time 18:45.

Lock-screen Live Activity card after check-in showing gate B12, Boarding, and estimated time 18