{"id":18394,"date":"2017-07-19T15:41:02","date_gmt":"2017-07-19T19:41:02","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=18394"},"modified":"2017-07-25T08:57:29","modified_gmt":"2017-07-25T12:57:29","slug":"cracking-the-code-behind-apples-app-store-promo-card-design","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/07\/19\/cracking-the-code-behind-apples-app-store-promo-card-design\/","title":{"rendered":"Cracking the Code Behind Apple&rsquo;s App Store Promo Card Design"},"content":{"rendered":"<p><a href=\"http:\/\/blog.equinux.com\/2017\/07\/cracking-the-code-behind-apples-app-store-promo-card-design\/\">equinux<\/a>:<\/p>\n<blockquote cite=\"http:\/\/blog.equinux.com\/2017\/07\/cracking-the-code-behind-apples-app-store-promo-card-design\/\"><p>Apple&rsquo;s App Store gift cards have a special trick: you can simply hold one up to your iPhone or Mac&rsquo;s camera and it&rsquo;ll automatically scan in the code and redeem the card for you. As developers, we thought it&rsquo;d be cool to print some of our own promo code cards to give away at events, so we tried to create our own scannable cards.<\/p><p>[&#8230;]<\/p><p>The app seems to recognize two things: A surrounding box and a code in the middle of this box. Once the app recognizes this pattern, it draws an on-screen box and tries to identify the code inside the box. The box itself isn&rsquo;t enough: the app only kicks off its code recognition engine as soon as it finds specific characteristics of the specific font.<\/p><p>[&#8230;]<\/p><p>This private framework is what iTunes and the App Store on your iPhone use to recognize codes. As it turns out, that&rsquo;s where the elusive font is stored. There are two fonts:<\/p><ol><li>&lsquo;Scancardium&rsquo; is used for entering and recognizing codes.<\/li><li>&lsquo;Spendcardium&rsquo; looks as though it&rsquo;s used to obscure sensitive credit card details as you enter them.<\/li><\/ol><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>equinux: Apple&rsquo;s App Store gift cards have a special trick: you can simply hold one up to your iPhone or Mac&rsquo;s camera and it&rsquo;ll automatically scan in the code and redeem the card for you. As developers, we thought it&rsquo;d be cool to print some of our own promo code cards to give away at [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[91,133,31,30,622],"class_list":["post-18394","post","type-post","status-publish","format-standard","hentry","category-technology","tag-appstore","tag-font","tag-ios","tag-mac","tag-ocr"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=18394"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18394\/revisions"}],"predecessor-version":[{"id":18456,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18394\/revisions\/18456"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=18394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=18394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=18394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}