[GH-ISSUE #22] 使用APNs Provider API #17

Closed
opened 2026-03-03 11:55:22 +03:00 by kerem · 3 comments
Owner

Originally created by @rankjie on GitHub (Nov 17, 2020).
Original GitHub issue: https://github.com/Finb/bark-server/issues/22

Originally assigned to: @Finb on GitHub.

目前在写一个bark-server的Node.js版本,方便其他写前端比较顺手的朋友集成bark推送到自己的项目中。

看到Finb提供的还是p12的证书,好像没有使用「新」的APNs Provider API。因为我这边用到的APNs包都只支持了APNs Provider API,老的cert-key模式已经完全移除...所以请问是否考虑换用新的APNs协议?

切换应该没有什么特别要处理的地方,bark-server使用的apns2包已经支持,只需要到苹果开发者网站申请.p8证书,再在初始化apns2时提供下keyId和teamId即可。

换到新的协议最大的好处是不用再定期更新证书了。

参考: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html

Originally created by @rankjie on GitHub (Nov 17, 2020). Original GitHub issue: https://github.com/Finb/bark-server/issues/22 Originally assigned to: @Finb on GitHub. 目前在写一个bark-server的Node.js版本,方便其他写前端比较顺手的朋友集成bark推送到自己的项目中。 看到Finb提供的还是p12的证书,好像没有使用「新」的APNs Provider API。因为我这边用到的APNs包都只支持了APNs Provider API,老的cert-key模式已经完全移除...所以请问是否考虑换用新的APNs协议? 切换应该没有什么特别要处理的地方,bark-server使用的apns2包已经支持,只需要到苹果开发者网站申请.p8证书,再在初始化apns2时提供下keyId和teamId即可。 换到新的协议最大的好处是不用再定期更新证书了。 参考: <https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html>
kerem closed this issue 2026-03-03 11:55:22 +03:00
Author
Owner

@jjss520 commented on GitHub (Nov 18, 2020):

支持支持

<!-- gh-comment-id:729289814 --> @jjss520 commented on GitHub (Nov 18, 2020): 支持支持
Author
Owner

@mritd commented on GitHub (Nov 18, 2020):

@Finb

<!-- gh-comment-id:729337709 --> @mritd commented on GitHub (Nov 18, 2020): @Finb
Author
Owner

@Finb commented on GitHub (Nov 18, 2020):

感谢提醒!!!
下面是证书的下载链接和所需的key

https://github.com/Finb/bark-server/releases/download/v1.0.2/AuthKey_LH4T9V5U4R_5U8LBRXG3A.p8
KeyID: LH4T9V5U4R
TeamID: 5U8LBRXG3A

<!-- gh-comment-id:729385050 --> @Finb commented on GitHub (Nov 18, 2020): 感谢提醒!!! 下面是证书的下载链接和所需的key https://github.com/Finb/bark-server/releases/download/v1.0.2/AuthKey_LH4T9V5U4R_5U8LBRXG3A.p8 KeyID: LH4T9V5U4R TeamID: 5U8LBRXG3A
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#17
No description provided.