---
title: registerForRemoteNotifications()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsapplication/registerforremotenotifications()
---

# registerForRemoteNotifications()

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

## Declaration

```swift
func registerForRemoteNotifications()
```

## Discussion

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 Registering your app with APNs.

## See Also

### Managing remote notifications

- [unregisterForRemoteNotifications()](appkit/nsapplication/unregisterforremotenotifications().md)
- [enabledRemoteNotificationTypes](appkit/nsapplication/enabledremotenotificationtypes.md)
- [registerForRemoteNotifications(matching:)](appkit/nsapplication/registerforremotenotifications(matching:).md)
- [isRegisteredForRemoteNotifications](appkit/nsapplication/isregisteredforremotenotifications.md)
- [NSApplication.RemoteNotificationType](appkit/nsapplication/remotenotificationtype.md)
