PushNotifications
external interface PushNotifications : <ERROR CLASS> ERROR CLASS: Symbol not found for node.events.EventEmitter(source)
Properties
Link copied to clipboard
abstract val receivedApnsNotificationEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple2<electron/core/Event<*>, ERROR CLASS: Symbol not found for js.objects.ReadonlyRecord<kotlin/String, kotlin/Any?>>>
Functions
Link copied to clipboard
abstract fun registerForAPNSNotifications(): ERROR CLASS: Symbol not found for Promise<kotlin/String>
Registers the app with Apple Push Notification service (APNS) to receive Badge, Sound, and Alert 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
Link copied to clipboard
Unregisters the app from notifications received from APNS. See: https://developer.apple.com/documentation/appkit/nsapplication/1428747-unregisterforremotenotifications?language=objc