---
title: "pushTokenDidChange(_:widgets:)"
framework: widgetkit
role: symbol
role_heading: Instance Method
path: "widgetkit/widgetpushhandler/pushtokendidchange(_:widgets:)"
---

# pushTokenDidChange(_:widgets:)

Handle push tokens changing for widgets reloads and relevance refreshes.

## Declaration

```swift
func pushTokenDidChange(_ pushInfo: WidgetPushInfo, widgets: [WidgetInfo])
```

## Parameters

- `pushInfo`: Provides information containing your push token to use.
- `widgets`: Information about widgets that support push updates.

## Mentioned in

Updating widgets with WidgetKit push notifications
