Does apple wallet supports notification for generic passes on Update?

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("🔔 Push notification sent:", response.failed);
        } catch (error) {
            console.error("❌ Error sending push notification:", error);
        }
    }

Posted on Feb 19, 2025 2:12 AM

Reply
3 replies

Feb 19, 2025 5:12 AM in response to nir115

nir115 wrote:

I have contacted, It is not related to them.
Thank you for your suggestions


You're welcome, nir115.


I have no clue about that issue, but if you think it's an Apple Wallet problem/limit, I'd try contacting Apple Support directly (using this link:--> Contact Apple for support and service ) or submit your request/comment to Apple, using this form:--> Apple – Product Feedback - iPhone


Regards

Giulio

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Does apple wallet supports notification for generic passes on Update?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.