Register to receive notifications of the specified types from a provider via Apple Push Notification service.
- macOS 10.7+
A bit mask specifying the types of notifications the app accepts. See
NSApplicationfor valid bit-mask values.
.Remote Notification Type
When you send this message, the device initiates the registration process with Apple Push Notification Service. If it succeeds, the app delegate receives a device token in the
application(_: method; if registration doesn’t succeed, the delegate is informed via the
application(_: method. If the app delegate receives a device token, it should connect with its provider and pass it the token.