Safari IOS无法打开PkPass但Mac Safari会打开

时间:2015-04-27 07:05:19

标签: ios mobile-safari passbook

Safari IOS无法下载pkpass howerver mac safari成功打开它, 我收到以下错误...

示例可以在这里找到.. http://home.shortkut.co/api/public/PassbookCoupon.pkpass/ 我也传递了正确的内容类型。 Content-Type:application / vnd.apple.pkpass 内容 - 处理:附件;文件名= pass.pkpass

我的pass.json看起来如下......

 {
    "passTypeIdentifier":"pass.co.shortkut.home",
    "formatVersion":1,
    "serialNumber":"01927847623423234234",
    "description":"Shalimar 20 Coupon",
    "organizationName":"Shortkut.co",
    "teamIdentifier":"*******",
    "logoText":"Home.Shortkut.co",
    "foregroundColor":"rgb(255,255,255)",
     "backgroundColor":"rgb(0,0,0)",
     "coupon":
         {"headerFields":[],
          "primaryFields":[{"key":"discount","label":"Discount","numberStyle":"PKNumberStylePercent","value":0.01}],
          "secondaryFields":[],
          "auxiliaryFields":[],
          "backFields":[]},
          "barcode":   {"format":"PKBarcodeFormatPDF417","message":"01927847623423234234","messageEncoding":"UTF-8","altText":"01927847623423234234"}
}

我做错了什么?

已更新:网址:http://home.shortkut.co/api/public/PassbookCoupon.pkpass/

1 个答案:

答案 0 :(得分:2)

您的问题是您的.pkpass捆绑包中没有图标。

$('#slider-1-nav-ul a').each(function() {

将icon.png图像添加到捆绑包中,您应该没问题。