Register to receive notifications of the specified types from a provider through the Apple Push Notification service.
- macOS 10.7+
A bit mask specifying the types of notifications the app accepts. See
NSRemotefor valid bit-mask values.
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.