在中生成的PKPass文件未在iOS设备中打开
是否有人使用在中生成的PKPass文件未在iOS设备中打开,ios,Ios,是否有人使用PKFileBasedSigningUtil生成Apple pkpass文件 PKSigningInformation pkSigningInformation = new PKSigningInformationUtil().loadSigningInformationFromPKCS12AndIntermediateCertificate(keyStorePath, keyStorePassword, appleWWDRCA); PKPassTemplateFolder p
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);
获取字节流签名和ZippedPKPassarchive
后,写入文件并使用格式(abc.pkpass)。
这将在iOS设备中打开,但不会打开…但我可以在Android设备中打开。
如果您无法在iPhone上打开通行证,请将iPhone插入Mac并打开“控制台”应用程序。在左侧,您可以选择您的iPhone。然后,您将能够检查添加过程中出现的任何错误:
如果您无法在iPhone上打开通行证,请将iPhone插入Mac并打开“控制台”应用程序。在左侧,您可以选择您的iPhone。然后,您将能够检查添加过程中发生的任何错误: