Closed bikegriffith closed 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.
Thanks. I'll take a look at this and add it.
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.
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.
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.