---
title: "activityUpdatedForAlert(_:)"
framework: Accessory Live Activities
role: symbol
role_heading: Instance Method
platforms: [iOS 26.5+, iPadOS 26.5+]
path: "accessoryliveactivities/liveactivityforwarding/accessoryliveactivitieshandler/activityupdatedforalert(_:)"
---

# activityUpdatedForAlert(_:)

Provides an updated Live Activity and requests confirmation that the accessory displayed an alert.

## Declaration

```swift
func activityUpdatedForAlert(_ activity: AccessoryLiveActivity) -> Bool
```

## Parameters

- `activity`: An updated Live Activity that includes alert content.

## Mentioned in

Receiving Live Activity updates and alerts on an accessory

## Return Value

Return Value true if the accessory successfully displayed an alert for this update, false otherwise.

## Overview

Overview Use this callback method to keep the accessory’s display in sync with the current state of the Live Activity, display an included alert, and coordinate alerts across devices. Parse the activity’s details, select the information to display on your accessory, and convert it to data for transmission. Then, send the data to your accessory using the Live Activity’s corresponding LiveActivityForwarding.Session and its LiveActivityForwarding/Session/send(message:) method. If the activity’s state property equals ActivityState.dismissed, remove the Live Activity from the accessory’s display. important: The system uses the return value to coordinate alert behavior across devices and may suppress an alert on a paired iPhone. Make sure your return value is accurate to avoid someone missing an important Live Activity update.

## See Also

### Receiving Live Activity updates

- [activityUpdated(_:)](accessoryliveactivities/liveactivityforwarding/accessoryliveactivitieshandler/activityupdated(_:).md)
