tschoffelen / php-pkpass

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

Safari cannot download this file when downloading pass #116

Closed martyndix closed 2 years ago

martyndix commented 2 years 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 2 years 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 2 years 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 2 years ago

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