【发布时间】:2019-10-23 10:58:25
【问题描述】:
在使用 Chrome 和 Firefox 的 iPhone 设备上下载 Apple Pass 时出现问题。它在 Safari 上运行良好。在 iOS 版 Chrome 上显示:
Sorry, your Pass cannot be installed to Passbook at this time.
对于 Firefox,它说:
Failed to Add Pass An error occurred while adding the pass to Wallet. Please try again later.
我尝试从桌面浏览器下载 Apple Pass,它会下载,我可以在 iPhone/模拟器上很好地安装它,我认为这不是 pass 本身的问题,而是我缺少的东西响应。
这是我用来返回 Apple Pass 的代码。
private void ReturnResponse(byte[] applePass)
{
Response.Clear();
Response.AddHeader("content-disposition", string.Formate("attachment; filename={0}", "sample.pkpass"));
Response.ContentType = "application/vnd.apple.pkpass"
Response.BinaryWrite(applePass);
Response.End();
}
预期结果:
Apple Pass 打开并允许用户将其添加到他们的 Apple Wallet。
【问题讨论】:
标签: ios iphone google-chrome firefox safari