gpt4 book ai didi

ios - 在 iOS 设备中无法打开时生成的 PKPass 文件

转载 作者:行者123 更新时间:2023-11-28 23:46:49 35 4
gpt4 key购买 nike

有人使用 PKFileBasedSigningUtil 来生成 Apple pkpass 文件吗?

PKSigningInformation pkSigningInformation = new  PKSigningInformationUtil().loadSigningInformationFromPKCS12AndIntermediateCertificate(keyStorePath,  keyStorePassword, appleWWDRCA);

PKPassTemplateFolder passTemplate = new PKPassTemplateFolder(template_path);

PKFileBasedSigningUtil pkSigningUtil = new PKFileBasedSigningUtil();
byte[] signedAndZippedPkPassArchive = pkSigningUtil.createSignedAndZippedPkPassArchive(pass, passTemplate, pkSigningInformation);

获取字节流signedAndZippedPkPassArchive后,写入文件并采用格式(abc.pkpass)。这个预计在iOS设备中可以打开,但是打不开...但是我在Android设备中可以打开。

最佳答案

enter image description here如果您无法在 iPhone 上打开通行证,请将 iPhone 插入 Mac 并打开“控制台”应用程序。在左侧,您可以选择您的 iPhone。然后,您将能够检查添加通行证时发生的任何错误:

关于ios - 在 iOS 设备中无法打开时生成的 PKPass 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52557494/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com