{"id":4876,"date":"2014-03-30T16:22:07","date_gmt":"2014-03-30T16:22:07","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/edit-passbook-pass-pkpass-file-at-runtime-collection-of-common-programming-errors\/"},"modified":"2014-03-30T16:22:07","modified_gmt":"2014-03-30T16:22:07","slug":"edit-passbook-pass-pkpass-file-at-runtime-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/edit-passbook-pass-pkpass-file-at-runtime-collection-of-common-programming-errors\/","title":{"rendered":"Edit Passbook Pass (.pkpass) file at Runtime?-Collection of common programming errors"},"content":{"rendered":"<p>As you already have said, Apple does not want you to create your own .pkpass files in an ios App. It is certainly possible to do so, Apple can&#8217;t NOT allow you to include or fetch certificates although they can certainly reject your app if they want to.<\/p>\n<p>You can adapt code from any number of articles\/tutorials to build the various files, create the signature (probably the most arcane and difficult part), and create a .pkpass file in your app. Some of the code in the signpass app is probably reusable as is, if the frameworks it relies on are in the iPhone SDK.<\/p>\n<p>Perhaps you could look at some the services that are already out there that offer pass generation with a high-level API that could be consumed from the phone. This one, for example, which I present with no warranty or endorsement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you already have said, Apple does not want you to create your own .pkpass files in an ios App. It is certainly possible to do so, Apple can&#8217;t NOT allow you to include or fetch certificates although they can certainly reject your app if they want to. You can adapt code from any number [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4876","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4876"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4876\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}