pushNotifications
For example, when registering for push notifications via Apple push notification services (APNS):
Event: ‘received-apns-notification’ macOS
Returns:
Emitted when the app receives a remote notification while running. See: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428430-application?language=objc
Methods
Returns
Registers the app with Apple Push Notification service (APNS) to receive notifications. If registration is successful, the promise will be resolved with the APNS device token. Otherwise, the promise will be rejected with an error message. See: https://developer.apple.com/documentation/appkit/nsapplication/1428476-registerforremotenotificationtyp?language=objc