node-apn / node-apn

:calling: Apple Push Notification module for Node.js
MIT License
4.37k stars 681 forks source link

Ready for new api ? #690

Open zjinpeng opened 3 years ago

zjinpeng commented 3 years ago

https://developer.apple.com/news/?id=c88acm2b APNs will no longer support the legacy binary protocol after March 31, 2021.

LoveMeWithoutAll commented 3 years ago

You can use it like below

`` const option = { "token": { "key": "-----BEGIN PRIVATE KEY-----your private key-----END PRIVATE KEY-----", "keyId": "your key id", "teamId": "your team id" }, "production": true }

const apnProvider = new apn.Provider(options); ``

BorisPetelj commented 3 years ago

This information was already published once with the date "November 2020" https://developer.apple.com/news/?id=11042019a&1572897862.

My question is: will it work with "Provider Certificates" authentication after March 31?

vladPovalii commented 2 years ago

@BorisPetelj did you manage to find out? Does certificate options still supported?

BorisPetelj commented 2 years ago

Yes, it works.