SlideShare a Scribd company logo
1 of 33
Download to read offline
準備すること

•   OS X10.7~が必要、できれば10.8

•   iOS 6のiPhone/iPod touch
Passbook

 •   パスの表示や管理を行う


 •   パス


     •   搭乗券


     •   クーポン


     •   会員カード


     •   切符など


     •   物理的な「券」をデジタル表現したもの
Passbookで、できること/できないこと

•   できること

    •   パスを表示する

    •   パスをアップデートする

    •   パスと関連のある場所、時間に通知する

    •   アプリと連携する
Passbookで、できること/できないこと

•   できないこと


    •   パスを読み取る(レジは別途必要です)*光学式が必要


    •   おさいふケータイとは違います(非接触ICとは違う)


•   エコシステムの設計は開発者にゆだねられる


    •   できるのはあくまでも、ID/ステータスの表示/パスのアップデート


    •   サーバとの連携が不可欠


    •   重複発行/不正対策
作り方 とりあえず使う&作ってみよう
Try!




       ・iOS Simulator
       ・Mail
       ・iCloud
Passの中身

Pass.raw
Digital Sign

 •   発行するすべてのパスにはデジタル署名が必要

 •   デジタル署名に必要な証明書(Certificate)は

     iOS Provisioning Portalで発行する
Passへのデジタル署名 1

•   Open SSLを使って署名する

•   面倒なので、ツールを使う

•   signpassをビルド
Passへのデジタル署名2

•    署名に使う証明書のPass IDとPassのPass ID, Team
     Identifierは一致する必要がある。

    pass.json
    "passTypeIdentifier" : "pass.com.bayroast.store-card",

    "serialNumber" : "p69f2J",

    "teamIdentifier" : "A1B2C3D4E5",


    "passTypeIdentifier" : "pass.li.noli.passdemo.matilde1",

    "serialNumber" : "p69f2J",

    "teamIdentifier" : "QSGNK36NJA",
signpassで署名

KamiyaMBP2009Mid:~ nori$ signpass -p /Users/nori/Documents/Passbook Lecture/Materials/StoreCard_demo.raw
2012-12-20 11:59:25.268 signpass[3012:707] {
    "icon.png" = 6b15fa477ece83fdd4f544a2381444272a0e39a0;
    "icon@2x.png" = 68b61c27657a0018da71c7f73626c8a891da753c;
    "logo.png" = 500e7c253cbbbb18c7e3391a70e789ee18738a3e;
    "logo@2x.png" = be05408e1053101b829c211aaf50c9cb1b49e70f;
    "pass.json" = ccb404ec43cbc346f77fbee2057c3e242bcc9141;
    "strip.png" = 507b870eed04ed07169be4425e0abd0e27b28635;
    "strip@2x.png" = 80ce76017af568597888f97e30a9b5d05b18830a;
}
KamiyaMBP2009Mid:~ nori$
オリジナルのPassを作る                   大まかな作業の流れ




•   Pass Identifierの入力 / Team IDの入力

•   テンプレートの選択

•   表示内容を記述

•   画像、背景色などを調整

•   関連する位置情報、時間情報の追加
JavaScript Object Notation

 •   Array

     ["milk", "bread", "eggs"]

 •   Dictionary

     {"name": "John Smith", "age": 33}

     {"key1": "Value", "key2": Value}
Passへのデジタル署名

•    署名に使う証明書のPass IDとPassのPass ID, Team
     Identifierは一致する必要がある。

    pass.json
    "passTypeIdentifier" : "pass.com.bayroast.store-card",

    "serialNumber" : "p69f2J",

    "teamIdentifier" : "A1B2C3D4E5",


    "passTypeIdentifier" : "pass.li.noli.passdemo.matilde1",

    "serialNumber" : "p69f2J",

    "teamIdentifier" : "QSGNK36NJA",
Pass Type
BoardingPass
Coupon
Event Ticket
Generic
Store Card
Barcode

 •   PKBarcodeFormatQR

 •   PKBarcodeFormatPDF417

 •   PKBarcodeFormatAztec




        QR            PDF417   Aztec
Passbook Design Guideline

 •   できるだけ、紙の「券」を再現しない。新しいものとして考える。


 •   簡素ですっきりとしたものを心がける。


 •   パスの前面に表示する情報は厳選する


     •   必要に応じて読めばいいものは非表示にする。


 •   企業名はロゴのテキスト欄に表示する


 •   企業ロゴは白


     •   ドロップシャドウ... オフセット1pt, ぼかし1pt, 不透明度35%, 黒
Passbook Design Guideline

 •   単なる真っ白の背景はさける

     •   鮮やかな色の無地、明るく刺激的な色合いが好まれ
         る?

     •   企業のイメージに合わせて。

     •   ただし、読みにくくならないように!

 •   できれば横長のバーコードを使う... PDF417形式は相性が悪いかも。
Passbook Design Guideline

 •   パスに表示するテキストはすべて指定されたテキスト
     欄に入れること。

 •   独自のフォントや画像埋め込みはしない。

 •   アクセシビリティ、外見の一貫性
デバッグについて

•   Xcodeのコンソールを使いましょう. 開発機ならログ
    が見えます。

•   テスト環境でHTTPSを使わない場合は設定で変更で
    きます。
参考資料

•   Passbook for Developers
    https://developer.apple.com/passbook/


•   Introducing Passbook, Part 1
    https://developer.apple.com/videos/wwdc/2012/?id=301


•   Introducing Passbook, Part 2
    https://developer.apple.com/videos/wwdc/2012/?id=309

•   Passbook プログラミングガイド

    https://developer.apple.com/jp/devcenter/ios/library/documentation/PassKit_PG.pdf

•   iOS 6 Programming Cookbook
    http://shop.oreilly.com/product/0636920027683.do

More Related Content

Recently uploaded

LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイスCRI Japan, Inc.
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルCRI Japan, Inc.
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NTT DATA Technology & Innovation
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)Hiroshi Tomioka
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 

Recently uploaded (7)

LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Passbook lecture

  • 1.
  • 2. 準備すること • OS X10.7~が必要、できれば10.8 • iOS 6のiPhone/iPod touch
  • 3. Passbook • パスの表示や管理を行う • パス • 搭乗券 • クーポン • 会員カード • 切符など • 物理的な「券」をデジタル表現したもの
  • 4. Passbookで、できること/できないこと • できること • パスを表示する • パスをアップデートする • パスと関連のある場所、時間に通知する • アプリと連携する
  • 5. Passbookで、できること/できないこと • できないこと • パスを読み取る(レジは別途必要です)*光学式が必要 • おさいふケータイとは違います(非接触ICとは違う) • エコシステムの設計は開発者にゆだねられる • できるのはあくまでも、ID/ステータスの表示/パスのアップデート • サーバとの連携が不可欠 • 重複発行/不正対策
  • 6.
  • 7.
  • 8.
  • 10.
  • 11. Try! ・iOS Simulator ・Mail ・iCloud
  • 13.
  • 14. Digital Sign • 発行するすべてのパスにはデジタル署名が必要 • デジタル署名に必要な証明書(Certificate)は iOS Provisioning Portalで発行する
  • 15. Passへのデジタル署名 1 • Open SSLを使って署名する • 面倒なので、ツールを使う • signpassをビルド
  • 16. Passへのデジタル署名2 • 署名に使う証明書のPass IDとPassのPass ID, Team Identifierは一致する必要がある。 pass.json "passTypeIdentifier" : "pass.com.bayroast.store-card", "serialNumber" : "p69f2J", "teamIdentifier" : "A1B2C3D4E5", "passTypeIdentifier" : "pass.li.noli.passdemo.matilde1", "serialNumber" : "p69f2J", "teamIdentifier" : "QSGNK36NJA",
  • 17. signpassで署名 KamiyaMBP2009Mid:~ nori$ signpass -p /Users/nori/Documents/Passbook Lecture/Materials/StoreCard_demo.raw 2012-12-20 11:59:25.268 signpass[3012:707] { "icon.png" = 6b15fa477ece83fdd4f544a2381444272a0e39a0; "icon@2x.png" = 68b61c27657a0018da71c7f73626c8a891da753c; "logo.png" = 500e7c253cbbbb18c7e3391a70e789ee18738a3e; "logo@2x.png" = be05408e1053101b829c211aaf50c9cb1b49e70f; "pass.json" = ccb404ec43cbc346f77fbee2057c3e242bcc9141; "strip.png" = 507b870eed04ed07169be4425e0abd0e27b28635; "strip@2x.png" = 80ce76017af568597888f97e30a9b5d05b18830a; } KamiyaMBP2009Mid:~ nori$
  • 18. オリジナルのPassを作る 大まかな作業の流れ • Pass Identifierの入力 / Team IDの入力 • テンプレートの選択 • 表示内容を記述 • 画像、背景色などを調整 • 関連する位置情報、時間情報の追加
  • 19. JavaScript Object Notation • Array ["milk", "bread", "eggs"] • Dictionary {"name": "John Smith", "age": 33} {"key1": "Value", "key2": Value}
  • 20. Passへのデジタル署名 • 署名に使う証明書のPass IDとPassのPass ID, Team Identifierは一致する必要がある。 pass.json "passTypeIdentifier" : "pass.com.bayroast.store-card", "serialNumber" : "p69f2J", "teamIdentifier" : "A1B2C3D4E5", "passTypeIdentifier" : "pass.li.noli.passdemo.matilde1", "serialNumber" : "p69f2J", "teamIdentifier" : "QSGNK36NJA",
  • 27. Barcode • PKBarcodeFormatQR • PKBarcodeFormatPDF417 • PKBarcodeFormatAztec QR PDF417 Aztec
  • 28.
  • 29. Passbook Design Guideline • できるだけ、紙の「券」を再現しない。新しいものとして考える。 • 簡素ですっきりとしたものを心がける。 • パスの前面に表示する情報は厳選する • 必要に応じて読めばいいものは非表示にする。 • 企業名はロゴのテキスト欄に表示する • 企業ロゴは白 • ドロップシャドウ... オフセット1pt, ぼかし1pt, 不透明度35%, 黒
  • 30. Passbook Design Guideline • 単なる真っ白の背景はさける • 鮮やかな色の無地、明るく刺激的な色合いが好まれ る? • 企業のイメージに合わせて。 • ただし、読みにくくならないように! • できれば横長のバーコードを使う... PDF417形式は相性が悪いかも。
  • 31. Passbook Design Guideline • パスに表示するテキストはすべて指定されたテキスト 欄に入れること。 • 独自のフォントや画像埋め込みはしない。 • アクセシビリティ、外見の一貫性
  • 32. デバッグについて • Xcodeのコンソールを使いましょう. 開発機ならログ が見えます。 • テスト環境でHTTPSを使わない場合は設定で変更で きます。
  • 33. 参考資料 • Passbook for Developers https://developer.apple.com/passbook/ • Introducing Passbook, Part 1 https://developer.apple.com/videos/wwdc/2012/?id=301 • Introducing Passbook, Part 2 https://developer.apple.com/videos/wwdc/2012/?id=309 • Passbook プログラミングガイド https://developer.apple.com/jp/devcenter/ios/library/documentation/PassKit_PG.pdf • iOS 6 Programming Cookbook http://shop.oreilly.com/product/0636920027683.do