<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PushKit",
  "identifier" : "/documentation/PushKit/PKPushRegistry/pushToken(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PushKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPushRegistry(im)pushTokenForType:"
  },
  "title" : "pushToken(for:)"
}
-->

# pushToken(for:)

Retrieves the locally cached push token for the specified push type.

```
func pushToken(for type: PKPushType) -> Data?
```

## Parameters

`type`

A push type requested by this push registry object. For a list of possible types, see [`PKPushType`](/documentation/PushKit/PKPushType).

## Return Value

The push token used to send pushes to the device or `nil` if no token is available for the specified type.

## Discussion

If registration for a specific push type is successful, the push registry delivers the corresponding push token to its delegate and adds a copy of the token to its local cache. Use this method to retrieve the token at a later time.

---

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)