tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
901 stars 185 forks source link

Safari cannot download this file when downloading pass #116

Closed martyndix closed 1 year ago

martyndix commented 1 year ago

Expected Behavior

Pass is downloaded when navigating to URL.

Actual Behavior

Pass is not generated and error message is shown "Safari cannot download this file". I have been using pkpass repository for years with no problems, just now it has started to display this message. Only change seems to be iOS 16 release.

Steps to Reproduce the Problem

  1. Navigate to URL to generate pass.
  2. Message is displayed
martyndix commented 1 year ago

I have tried to update the AppleWWDRCA.pem certificate but I do not think it is out of date. Not sure what else to try. Any assistance would be greatly appreciated. Thank you in advance.

UPDATE: It is working from Safari on a Mac, just not in iOS. Maybe it is an OS issue? Anyone else had the same?

tschoffelen commented 1 year ago

I can't reproduce this, works fine for me on iPhone and Mac. Are you using the final iOS 16 version and not a beta version?

There is information in the README on how to debug using the Console application, this should show you what error is occurring exactly on the device.

tschoffelen commented 1 year ago

I think this might have been related to the outdated WWDR cert as mentioned in #119 - this is fixed now.