php-pkpass | PHP class for creating passes for Wallet on iOS | Ecommerce library
kandi X-RAY | php-pkpass Summary
kandi X-RAY | php-pkpass Summary
PHP class for creating passes for Wallet on iOS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a pass file
- Create a signature
- Create zip archive
- Create the package manifest .
- Get an array of temporary paths .
- Set json data
- Clean up temporary files
- Add translation strings
- Add a file .
- Add locale file
php-pkpass Key Features
php-pkpass Examples and Code Snippets
Community Discussions
Trending Discussions on php-pkpass
QUESTION
I am trying to set up server side for Apple passes so they can be updated. I am currently generating signed zipped passes, which also register to update my tables, with device tokens /id Etc.
The passes do not update with the new passes I generate (Same serial, auth token - different message/image)
In console I'm getting this error (fault):
...ANSWER
Answered 2017-Sep-05 at 21:16The problem is in the way ZIP (pkpass) files are generated. I've looked at the code and it's using PHP's ZipArchive. Though the ZIP files generated can be extracted both on Windows and Linux without errors, Apple server is more picky.
I've tried PclZip as well, and it has the same problem.
The solution is to use system() call to zip files using the command-line zip
command. The ZIP file generated this way is accepted by Apple.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-pkpass
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page