node-apn
node-apn copied to clipboard
Apple Push Notification module for Node.js
I had to do this when declaring ParseServerConfig in my app, because the topic field is missing : declare module 'parse-server' { import type {ProviderOptions} from '@parse/node-apn' ... type ParseServerConfig...
We have consistently been getting this error on about 1 out of 100 notifications we sent. Any idea how we can fix this? ``` apn write failed: New streams cannot...
Thanks for this great lib. The detailed `apn.Notification` [documentation](https://github.com/parse-community/node-apn/blob/4cf2c03dc749312464f192f83d932c9b2aa0dd25/doc/notification.markdown#class-apnnotification) refers to the Apple payload documentation at https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html This link is outdated, the modern docu can be found at https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification In...
I am facing an issue using this package The notification is successfully sent to the given device token by your package but not receiving notification on the device is there...
With iOS 15, a new notification type was added, Location Push Service Notifications [Apple Docs | Setting Up A Remote Notification](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns#:~:text=tvOS%2C%20and%20iPadOS.-,location,-Use%20the%20location). I believe a change is simply needed here [index.d.ts](https://github.com/parse-community/node-apn/blob/master/index.d.ts#L168),...
Continuing from [here](https://github.com/parse-community/node-apn/pull/133#issuecomment-1747747998). This reverts this PR from @dplewis. Additionally it adds `dismissal-date` as a field to APS + tests.
Live Activity app not producing proper APS payload (events instead of event, missing dismissal-date)
[Since 5.2.3](https://github.com/parse-community/node-apn/pull/133#issuecomment-1747747998), node-apn has been producing slightly wrong APS payloads, renaming `events` instead of `event` in the live activity push notifications. Additionally, there wasn't any support for `dismissal-date` which is...
Hello, I have generated the token for push notifications at Keys section (https://developer.apple.com/account/resources/authkeys/list), enabled `Apple Push Notifications service (APNs)` there, but when using the generated key (`AuthKey_XXXYYYZZZ.p8`), I get an...
A switch to typescript may make sense in a major version index.d.ts may get out of sync with the implementation. It may be easier to write everything in typescript and...
This code causes resource leak and don't close the TLS socket ```js const apn = require('../'); let i = 0; const pushToken = '' function send(provider, token) { const note...