Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用APNs Provider API #22

Closed
rankjie opened this issue Nov 17, 2020 · 3 comments
Closed

使用APNs Provider API #22

rankjie opened this issue Nov 17, 2020 · 3 comments
Assignees

Comments

@rankjie
Copy link

rankjie commented Nov 17, 2020

目前在写一个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

@jjss520
Copy link

jjss520 commented Nov 18, 2020

支持支持

@mritd
Copy link
Collaborator

mritd commented Nov 18, 2020

@Finb

@mritd mritd assigned mritd and Finb and unassigned mritd Nov 18, 2020
@Finb
Copy link
Owner

Finb commented Nov 18, 2020

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

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

@mritd mritd closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants