<!--
{
  "availability" : [
    "iOS: 26.5.0 -",
    "iPadOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryLiveActivities",
  "identifier" : "/documentation/AccessoryLiveActivities/LiveActivityForwarding/AccessoryLiveActivitiesHandler/activityUpdatedForAlert(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accessory Live Activities"
    ],
    "preciseIdentifier" : "s:23AccessoryLiveActivities0B18ActivityForwardingC0abC7HandlerP23activityUpdatedForAlertySbAA0abD0VF"
  },
  "title" : "activityUpdatedForAlert(_:)"
}
-->

# activityUpdatedForAlert(_:)

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

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

## Parameters

`activity`

An updated Live Activity that includes alert content.

## Return Value

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

## 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`](/documentation/AccessoryLiveActivities/LiveActivityForwarding/Session) and its `LiveActivityForwarding/Session/send(message:)` method.

If the activity’s [`state`](/documentation/AccessoryLiveActivities/AccessoryLiveActivity/state) property equals <doc://com.apple.documentation/documentation/ActivityKit/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)