Implementation
In this page let's dive deeper into how passes are handled in your web app. When distributed via a push notification, on the web, passes will fallback to the non-native solution built in HTML. You handle those accordingly pretty much the same way you do with the notifications of type HTML and Web Page.
Whenever if you have a serial number of a digital card you can retrieve its JSON object using the following method:
notificare.fetchPassWithSerial("SERIAL_NUMBER").then((response) => {
//Handle success
}).catch((e) => {
//Handle error
});
If instead you have a custom barcode of a digital card, you can retrieve its JSON object using the following method:
notificare.fetchPassWithBarcode("BARCODE").then((response) => {
//Handle success
}).catch((e) => {
//Handle error
});