tschoffelen / php-pkpass

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

Safari sends "Download Failed" if icon.png is not included #11

Closed bikegriffith closed 12 years ago

bikegriffith commented 12 years ago

If you attempt to create a pass without adding any files, Safari gives an alert saying "Download Failed. Safari cannot download this file." It looks like this is an issue with Safari/Passbook itself, rather than PHP-PKPass, but I wanted to document it in writing.

You must at the very least call $pass->addFile('images/icon.png'). Any other files are optional.

I fought with re-generating the certificates and reconfiguring the passTypeIdentifier, teamIdentifier, etc. before realizing that this was the problem.

bikegriffith commented 12 years ago

I guess my only course of action for PHP-PKPass would be an enhancement request to trigger an error if the icon.png is not included. This might save people some wasted time looking elsewhere.

tschoffelen commented 12 years ago

Thanks. I'll take a look at this and add it.

tschoffelen commented 12 years ago

Do you also know if icon.png has to be lowercase? When I tested the code first, it only worked when I used Icon.png (capital I). Any insights on that? I can't test right now.

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.