<!--
{
  "availability" : [
    "iOS: 17.2.0 -",
    "iPadOS: 17.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ActivityKit",
  "identifier" : "/documentation/ActivityKit/Activity/update(_:alertConfiguration:timestamp:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ActivityKit"
    ],
    "preciseIdentifier" : "s:11ActivityKit0A0C6update_18alertConfiguration9timestampyAA0A7ContentVy0G5StateQzG_AA05AlertE0VSg10Foundation4DateVtYaF"
  },
  "title" : "update(_:alertConfiguration:timestamp:)"
}
-->

# update(_:alertConfiguration:timestamp:)

Updates the dynamic content of a Live Activity and alerts a person about the Live Activity update.

```
func update(_ content: ActivityContent<Activity<Attributes>.ContentState>, alertConfiguration: AlertConfiguration? = nil, timestamp: Date) async
```

## Parameters

`content`

The updated dynamic content for the Live Activity. The size of its
[`state`](/documentation/ActivityKit/ActivityContent/state) property can’t exceed 4KB in size.

`alertConfiguration`

The alert configuration you use to configure how the system notifies
a person about the updated content of the Live Activity.

`timestamp`

The time the data in the payload was generated. If this is older than a previous
update or push payload, the system ignores this update.

## Discussion

The system ignores updates to a Live Activity that’s in the [`ActivityState.ended`](/documentation/ActivityKit/ActivityState/ended)
state.

---

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)