【问题标题】:Invalid passbook generated in php server在php服务器中生成无效的存折
【发布时间】:2014-08-13 08:25:55
【问题描述】:

我正在尝试从 ios6 及更高版本创建支持存折。我找到了一个完美运行的示例,但是当尝试将其调整到我的服务器时,它会生成无效的存折。原项目在这个网址:

https://github.com/SimonWaldherr/passkit.php

我所做的唯一更改是将他放在我服务器的临时文件目录中。证书与示例中所示的相同,并且一切都完全相同。我的服务器是https。有什么问题?

我的测试服务器的网址是:

https://hot.es/passkit.php-master/

【问题讨论】:

    标签: javascript php ios passbook passkit


    【解决方案1】:

    您的证书似乎有问题。这是我尝试下载时得到的。

    Sep 15 13:32:01 iPhone MobileSafari[892] <Warning>: Invalid data error reading pass pass.com.apple.demo/nmyuxofgnb. The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified.
    Sep 15 13:32:01 iPhone MobileSafari[892] <Warning>: PassBook Pass download failed: The pass cannot be read because it isn’t valid.
    

    您可以通过尝试将您的通行证下载到设备来自行调试。虽然您将从 UI 中得到的唯一错误是“Safari 无法下载此文件”之类的错误,但您的设备日志中还有更多错误。将您的设备插入装有 XCode 的计算机,打开 Window -&gt; OrganizerCMD + Shift + 2,在边栏中找到您的设备并选择 console 子选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多