I want to send push-notifications to iphone by using node.js server-side language I found npm two modules for doing that
https://www.npmjs.com/package/apns
var apns = require("apns"), options, connection, notification; options = { keyFile : "conf/key.pem", certFile : "conf/cert.pem", debug : true };
connection = new apns.Connection(options);
I have only single pem file but they are asking about two pem files key.pem and cert.pem
https://www.npmjs.com/package/apn
var options = { token: { key: "path/to/key.p8", keyId: "T0K3NK3Y1D", teamId: "T34M1D" }, production: false }; var apnProvider = new apn.Provider(options);
In this, they are asking about key, keyId. teamId. But how can I get this ?
Which npm module should I used for sending Apple push notifications ?
I have pem file and bundle id of my app. Are they sufficient to send push notifications to Apple user or not ?
Also can't figure out which npm module is best suited for sending the same ? Any suggestions are always welcome regarding this.
Thanks for the help