先说注意点:
1:开发环境下要配置developer的.p12证书,生产环境的时候在换掉。
2:证书目录要用绝对的项目路径,建议使用__dirname;
代码如下:
`const apn = require‘𝑎𝑝𝑛′‘apn′;`
*
2020-09-28