<!--
{
  "availability" : [
    "macOS: 10.14.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSApplication/registerForRemoteNotifications()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSApplication(im)registerForRemoteNotifications"
  },
  "title" : "registerForRemoteNotifications()"
}
-->

# registerForRemoteNotifications()

Register for notifications sent by Apple Push Notification service (APNs).

```
func registerForRemoteNotifications()
```

## Discussion

Call this method to register your app with APNs. When a valid connection is established, APNs sends a device token to your app delegate. Forward that token to your company’s provider server.

For more information about how to register with APNs, see <doc://com.apple.documentation/documentation/UserNotifications/registering-your-app-with-apns>.

---

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)