Hi All,
I have imported node-apn into my Realm project but I have difficulty calling the configuration function because one of the params refers the the path of the token key file:
var apn = require('apn');
const apnKeyId = context.values.get("apnKeyId");
const teamId = context.values.get("teamId");
const filePath = "mykey.p8";
var options = {
token: {
key: filePath,
keyId: apnKeyId,
teamId: teamId
},
production: false
};
var apnProvider = new apn.Provider(options);
I tried uploading the p8 file using hosting and using URL path to refer to it but it couldn’t be found.
My question has 2 parts:
- Where can I upload the file?
- How do I reference it?
Thank you so much for your help! Much appreciated.
Regards,
Ming