Skip to content

Commit 607b557

Browse files
committed
docs(demo): remove Live Activities exit button
1 parent 2464b28 commit 607b557

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

demo/build.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ Only shown on iOS. Requires an iOS Widget Extension target with a Live Activity
283283
- Input card with two editable fields (pre-filled, not empty), using Inline Input Row styling per styles.md:
284284
- "Activity ID" (default: "order-1") — identifies the Live Activity for all operations
285285
- "Order #" (default: "ORD-1234") — attribute set at start, immutable after
286-
- Four buttons:
286+
- Three buttons:
287287
1. START LIVE ACTIVITY — calls `OneSignal.LiveActivities.startDefault(activityId, attributes, content)` with initial order status. Disabled when Activity ID is empty.
288288
2. UPDATE → {NEXT STATUS} — cycles through order statuses via REST API (`event: "update"`). Label dynamically shows the next status (e.g. "UPDATE → ON THE WAY"). Disabled when Activity ID is empty, while updating, or when no API key is configured.
289-
3. END LIVE ACTIVITY — ends the activity via REST API (`event: "end"`) with `dismissal_date`. Outlined style. Disabled when Activity ID is empty or when no API key is configured.
289+
3. END LIVE ACTIVITY — ends the activity via REST API (`event: "end"`) with `dismissal_date`. Destructive style. Disabled when Activity ID is empty or when no API key is configured.
290290

291291
Order status cycle (content state fields: `status`, `message`, `estimatedTime`):
292292

@@ -489,7 +489,7 @@ All actions show brief feedback via platform's transient message (SnackBar/Toast
489489
- IAM: "Sent In-App Message: {type}"
490490
- Outcomes: "Outcome sent: {name}"
491491
- Events: "Event tracked: {name}"
492-
- Live Activities: "Started Live Activity: {activityId}", "Updated Live Activity: {activityId}", "Ended Live Activity: {activityId}", "Exited Live Activity: {activityId}" / "Failed to update Live Activity" / "Failed to end Live Activity"
492+
- Live Activities: "Started Live Activity: {activityId}", "Updated Live Activity: {activityId}", "Ended Live Activity: {activityId}" / "Failed to update Live Activity" / "Failed to end Live Activity"
493493

494494
Clear previous message before showing new. All messages also logged via LogManager.i().
495495

demo/tooltip_content.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@
9494
{
9595
"name": "End",
9696
"description": "Terminate the Live Activity via the REST API with immediate dismissal."
97-
},
98-
{
99-
"name": "Stop Updating",
100-
"description": "Call the SDK's exit method to unsubscribe this device from future updates for the given activity ID."
10197
}
10298
]
10399
}

0 commit comments

Comments
 (0)