Customizing Passes with passkit-generator #214
-
Hello, I'm working on customizing a pass using passkit-generator and I've run into some issues. I'd really appreciate your help with the following: Problem with Folder Model: I found #191, so I change to create pass by Buffer Model. Issue with Buffer Model: const pass = new PKPass(
{
'personalization.json': Buffer.from(
personalizationJsonString,
'utf-8',
),
'personalizationLogo.png': fs.readFileSync(personalizationLogo),
'pass.json': Buffer.from(passJsonString),
'strip.png': fs.readFileSync(resizedStrip),
'[email protected]': fs.readFileSync(resizedStrip2x),
'logo.png': fs.readFileSync(resizedLogo),
'[email protected]': fs.readFileSync(resizedLogo2x),
'icon.png': fs.readFileSync(resizedLogo2x),
'[email protected]': fs.readFileSync(resizedIcon),
},
{
wwdr,
signerCert,
signerKey,
signerKeyPassphrase,
},
{
// keys to be added or overridden
serialNumber: 'xxxxxxx',
},
); My specific questions are: How can I correctly add personalization.json and personalizationLogo.png when using the Buffer Model? Thank you very much for your time and help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hey @mis101247, thanks for using passkit-generator! Today I cannot help you as I'm away. I'll likely be able to help you maybe this night or tomorrow, not sure yet. In the meanwhile, I suggest you reading the documentation. There are some details and methods I think you'll need, like the usage of Also, I suggest you looking at the logs, as passkit-generator may print some things if there is a validation error. Last but not least, I'd like to ask you to edit your first message and add how you were trying to change the colors or other info, when using folder model. Let me know if you are able to solve. I'll examine your question more deeply ASAP, thanks for understanding. |
Beta Was this translation helpful? Give feedback.
Hey @mis101247, thanks for using passkit-generator!
Today I cannot help you as I'm away. I'll likely be able to help you maybe this night or tomorrow, not sure yet.
In the meanwhile, I suggest you reading the documentation. There are some details and methods I think you'll need, like the usage of
addBuffer()
, which is called underneath when you create a pass instance.Also, I suggest you looking at the logs, as passkit-generator may print some things if there is a validation error.
Last but not least, I'd like to ask you to edit your first message and add how you were trying to change the colors or other info, when using folder model.
Let me know if you are able to solve. I'll examine you…