assaf / node-passbook

iOS Passbook for the Node hacker
MIT License
280 stars 73 forks source link

Unable to add barcode in the pass. #61

Open maulijadhav-tudip opened 7 years ago

maulijadhav-tudip commented 7 years ago

I have created pass using passbook library but i am unable to add barcode to my pass. Can anyone provide me help in this issue? There is one other issue I am unable to increase the thumbnail size.Is it possible to increase thumbnail size.?

rivasvict commented 7 years ago

@maulijadhav-tudip have you tried to put barcode object like:

  "barcode" : {
    "message" : "123456789",
    "format" : "PKBarcodeFormatPDF417",
    "messageEncoding" : "iso-8859-1"
  },

when creating the object template?

rivasvict commented 7 years ago

@maulijadhav-tudip I just tested that and worked just as I expected. It put the barcode attribute on the pass. If you are not seeing it in the actual pass. It might be due to a format issue (I mean, the way you build barcode's object).

I have not tested the actual pass but it is doing what it is supposed to do in the pass.json file