<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEAppPushManager/saveToPreferences(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEAppPushManager(im)saveToPreferencesWithCompletionHandler:"
  },
  "title" : "saveToPreferences(completionHandler:)"
}
-->

# saveToPreferences(completionHandler:)

Saves the manager’s configuration in the persistent store.

```
func saveToPreferences(completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```
func saveToPreferences() async throws
```

## Parameters

`completionHandler`

A completion block that the framework calls after it saves the configuration. If saving failed, the `error` parameter indicates the reason for the failure; otherwise, this parameter is `nil`.

---

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)