I am creating generic passes in Nodejs, where update is working fine. Whenever i am updating amount it is updating it on real-time.
But i am not getting notifications for it.
const apn = require("apn");
const apnOptions = {
token: {
key: "./path/to/file.p8",
keyId: "KEYID",
teamId: "TEAMID",
},
production: true, // Set to `true` for production
};
const apnProvider = new apn.Provider(apnOptions);
sendPassUpdateNotification: async (data) => {
const pushToken = 'device-token'
if (!pushToken) {
console.log("❌ No push token found for device:", deviceLibraryIdentifier);
return;
}
const notification = new apn.Notification({
alert: "Your pass has been updated.",
topic: "pass.test",
sound: "ping.aiff",
badge: 1,
contentAvailable: true,
});
try {
let response = await apnProvider.send(notification, pushToken);
console.log("