LUMIA APP LABS #8DEVELOPING NFCAPPS IN WINDOWSPHONE 8Andreas Jakl [@mopius]Mopius
AGENDA         −   NFC intro         −   Share captured photos         −   Share URLs         −   Share your app          ...
TAP AND DO A gesture that is a natural interaction between people in close proximity used  to trigger doing something toge...
SCENARIOS Connect Devices   Exchange Digital Objects   Acquire Content                              4
Windows Phone 8 +   Proximity APIs                              ASUS VivoTab RT LTE   Windows 8     Documentation Win8: bi...
SHARE CAPTURED PHOTOS          6
SHARE CAPTURED PHOTOS                                2.               1.                             Share             Tak...
SHARE URLS     8
NFC DATA     NDEF Record                          …      (e.g., URL)     NDEF Message                    NDEF = NFC Data E...
NDEF.CODEPLEX.COM        Create NDEF                           Reusable                                                   ...
SUPPORTED RECORD TYPES                                   Geo tags                                   Social tags           ...
SHARE URLS             Code Demo    12
13
SHARE YOUR APP      14
CUSTOM URI SCHEME             nearspeak: en-USmGood+morning.      Protocol                                                ...
CUSTOM URI SCHEME                     Launch your app ...      … from                         … from            … on other...
USER EXPERIENCE No app installed   1 app installed   2+ apps installed                          17
LAUNCHING APPS                      Tag directly contains                      app name and                      parameter...
CUSTOM URIS VS. LAUNCHAPP     Use less space on tag     (LaunchApp with multiple app ids: big!)     Better cross-platform ...
STORING APP DATA ON NFC TAGSRecommended    HTTP                   Custom URI        LaunchApp             External        ...
MULTI-USER COLLABORATION           21
MULTI-USER COLLABORATION                            Tap for         Quick Data                     Long Term         Excha...
ESTABLISHING                                Long Term                                Connection           Trigger         ...
TAP TO TRIGGER      App not installed                          App installed                            24
CONNECTION STATE                Proximity gesture complete          1                Devices can be pulled away           ...
NFCRPS              Multiplayer game              Tap launches app                     on                 2nd phone       ...
TOOLS & RESOURCES        27
TOOLS AND RESOURCES−   NFC Overview: developer.nokia.com/NFC−   MSDN Proximity API documentation:    bit.ly/ProximityAPIwp...
Thank you!         Andreas Jakl         [@mopius]      nfcinteractor.comCode examples online: bit.ly/NfcWebinar           ...
Upcoming SlideShare
Loading in...5
×

LUMIA APP LABS: DEVELOPING NFC APPS IN WINDOWS PHONE 8

6,168

Published on

Near Field Communication (NFC) is an emerging short-range radio technology that is poised to revolutionise how we use mobile phones in everyday interactions. In this webinar, we’ll introduce the basics of NFC and how the technology is implemented in Nokia Lumia phones. We’ll also demonstrate how you can use NFC via Microsoft Windows Phone 8’s Proximity API in your applications to share content, read data from and write data to NFC tags, and create your own application-launch tags. We suggest that you install the Microsoft Windows Phone SDK 8.0 in advance to get the most out of this training lab. While you’ll learn a lot with or without the SDK, you’ll learn even more if you have the SDK installed and can begin using the API as soon as you complete the training. Also, it will be helpful to have a Nokia Lumia phone built on Windows Phone 8 available for testing.

Published in: Technology
0 Comments
10 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,168
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
539
Comments
0
Likes
10
Embeds 0
No embeds

No notes for slide

LUMIA APP LABS: DEVELOPING NFC APPS IN WINDOWS PHONE 8

  1. 1. LUMIA APP LABS #8DEVELOPING NFCAPPS IN WINDOWSPHONE 8Andreas Jakl [@mopius]Mopius
  2. 2. AGENDA − NFC intro − Share captured photos − Share URLs − Share your app − Custom URI scheme − LaunchApp tag − Storing data on NFC tags − Multi-user collaboration − Tools & resources 2
  3. 3. TAP AND DO A gesture that is a natural interaction between people in close proximity used to trigger doing something together between the devices they are holding. System: Near Field Proximity (e.g., NFC) Documentation: bit.ly/ProximitySpec 3
  4. 4. SCENARIOS Connect Devices Exchange Digital Objects Acquire Content 4
  5. 5. Windows Phone 8 + Proximity APIs ASUS VivoTab RT LTE Windows 8 Documentation Win8: bit.ly/ProximityAPIWP8: bit.ly/ProximityAPIwp8 5
  6. 6. SHARE CAPTURED PHOTOS 6
  7. 7. SHARE CAPTURED PHOTOS 2. 1. Share Take captured picture file CameraCaptureTask ShareMediaTask Code Demo 7
  8. 8. SHARE URLS 8
  9. 9. NFC DATA NDEF Record … (e.g., URL) NDEF Message NDEF = NFC Data Exchange Format 9
  10. 10. NDEF.CODEPLEX.COM Create NDEF Reusable Parse information messages & records NDEF from raw byte arrays (standard compliant) classes Fully documented Open Source LGPL license (based on Qt Mobility) NDEF messages are standardized by the NFC Forum: http://www.nfc-forum.org/specs/ 10
  11. 11. SUPPORTED RECORD TYPES Geo tags Social tags Smart Poster SMS tags URI Telephone call Text Mailto tags LaunchAppAndroid Application Record (AAR) Windows Phone Settings Nokia Accessories Record NearSpeak Voice Messages 11
  12. 12. SHARE URLS Code Demo 12
  13. 13. 13
  14. 14. SHARE YOUR APP 14
  15. 15. CUSTOM URI SCHEME nearspeak: en-USmGood+morning. Protocol Custom name data Encoded Launch URI Examples* skype:mopius?call nokia-music://show/artist/?name=Rihanna * Definition & examples: http://en.wikipedia.org/wiki/URI_scheme 15
  16. 16. CUSTOM URI SCHEME Launch your app ... … from … from … on other other apps NFC tags devices (same device) Code Demo 16
  17. 17. USER EXPERIENCE No app installed 1 app installed 2+ apps installed 17
  18. 18. LAUNCHING APPS Tag directly contains app name and parameters Tag / phone launches app through custom URI scheme 18
  19. 19. CUSTOM URIS VS. LAUNCHAPP Use less space on tag (LaunchApp with multiple app ids: big!) Better cross-platform compatibility (also Android apps can be launched with custom URI) No unique app mapping (other apps can register for your URI scheme too!) 19
  20. 20. STORING APP DATA ON NFC TAGSRecommended HTTP Custom URI LaunchApp External Windows Website Scheme Tag Type Protocol Link Safest and most Better UX for Best app launching Standardized Should not be cross-platform app launching UX, but specific type for storing used for storing to Windows data, but limited custom data use on Windows bit.ly/NfcAppData 20
  21. 21. MULTI-USER COLLABORATION 21
  22. 22. MULTI-USER COLLABORATION Tap for Quick Data Long Term Exchange Connection ProximityDevice PeerFinder Exchange Windows / Automatically builds NDEF messages, Bt / WiFi Direct SNEP protocol socket connection 22
  23. 23. ESTABLISHING Long Term Connection Trigger Browse Interact with Tap Start Search NFC Bt, WiFi, etc. 23
  24. 24. TAP TO TRIGGER App not installed App installed 24
  25. 25. CONNECTION STATE Proximity gesture complete 1 Devices can be pulled away PeerFound Which device initiated tap gesture? → Connecting, other device Listening 2 Connecting / Listening Access socket of persistent transport (e.g., TCP/IP, Bt) 3 Completed 25
  26. 26. NFCRPS Multiplayer game Tap launches app on 2nd phone Players decide next move on own device Both see the winner! Code Demo 26
  27. 27. TOOLS & RESOURCES 27
  28. 28. TOOLS AND RESOURCES− NFC Overview: developer.nokia.com/NFC− MSDN Proximity API documentation: bit.ly/ProximityAPIwp8− NFC News: nfcworld.com− NDEF Library for Proximity APIs: ndef.codeplex.com− NFC developer comparison (WP, Android, BlackBerry): bit.ly/NfcDevCompare− Specifications: nfc-forum.org 28
  29. 29. Thank you! Andreas Jakl [@mopius] nfcinteractor.comCode examples online: bit.ly/NfcWebinar 29

×