
Posted by Stephen McDonald, Developer Packages Engineer, and Nick Alteen, Technical Author, Engineering, Pockets
Every of the cellular pockets apps implement their very own technical specification for passes that may be saved to the pockets. Cross construction and configuration varies by each the pockets utility and the particular sort of move, that means builders need to construct and keep code bases for every platform.
As a part of Developer Relations for Google Pockets, our objective is to make life simpler for individuals who wish to combine passes into their cellular or internet functions. At present, we’re excited to launch the open-source Cross Converter challenge. The Cross Converter permits you to take current passes for one pockets utility, convert them, and make them accessible in your cellular or internet utility for an additional pockets platform.
![]() |
The Cross Converter launches with assist for Google Pockets and Apple Pockets apps, with plans so as to add assist for others sooner or later. For instance, when you construct an occasion ticket move for one pockets, you should use the converter to mechanically create a move for an additional pockets. The next record of move varieties are supported for his or her respective platforms:
- Occasion tickets
- Generic passes
- Loyalty/Retailer playing cards
- Provides/Coupons
- Flight/Boarding passes
- Different transit passes
We designed the Cross Converter with flexibility in thoughts. The next options present extra customization to your wants.
- A hints.json file might be offered to the Cross Converter to map Google Pockets move properties to customized properties in different passes.
- For move varieties that require certificates signatures, you may merely generate the move construction and hand it off to your current signing course of
- Since photographs in Google Pockets passes are referenced by URLs, the Cross Converter can host the pictures itself, retailer them in Google Cloud Storage, or ship them to a different picture host you handle.
If you wish to shortly take a look at changing completely different passes, the Cross Converter features a demo mode the place you may load a easy webpage to check changing passes. Later, you may run the software through the command line to transform current passes you handle. Whenever you’re able to automate move conversion, the software might be run as an online service inside your setting.
The next command supplies a demo internet web page on http://localhost:3000 to check changing passes.
The subsequent command converts passes regionally. If the output path is omitted, the Cross Converter will output JSON to the terminal (for PKPass recordsdata, this would be the contents of move.json).