Advertisement

LUMIA APP LABS: DEVELOPING NFC APPS IN WINDOWS PHONE 8

Microsoft Mobile Developer
Jan. 29, 2013
Advertisement

More Related Content

Advertisement

More from Microsoft Mobile Developer(20)

Recently uploaded(20)

Advertisement

LUMIA APP LABS: DEVELOPING NFC APPS IN WINDOWS PHONE 8

  1. LUMIA APP LABS #8 DEVELOPING NFC APPS IN WINDOWS PHONE 8 Andreas Jakl [@mopius] Mopius
  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. 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. SCENARIOS Connect Devices Exchange Digital Objects Acquire Content 4
  5. Windows Phone 8 + Proximity APIs ASUS VivoTab RT LTE Windows 8 Documentation Win8: bit.ly/ProximityAPI WP8: bit.ly/ProximityAPIwp8 5
  6. SHARE CAPTURED PHOTOS 6
  7. SHARE CAPTURED PHOTOS 2. 1. Share Take captured picture file CameraCaptureTask ShareMediaTask Code Demo 7
  8. SHARE URLS 8
  9. NFC DATA NDEF Record … (e.g., URL) NDEF Message NDEF = NFC Data Exchange Format 9
  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. SUPPORTED RECORD TYPES Geo tags Social tags Smart Poster SMS tags URI Telephone call Text Mailto tags LaunchApp Android Application Record (AAR) Windows Phone Settings Nokia Accessories Record NearSpeak Voice Messages 11
  12. SHARE URLS Code Demo 12
  13. 13
  14. SHARE YOUR APP 14
  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. CUSTOM URI SCHEME Launch your app ... … from … from … on other other apps NFC tags devices (same device) Code Demo 16
  17. USER EXPERIENCE No app installed 1 app installed 2+ apps installed 17
  18. LAUNCHING APPS Tag directly contains app name and parameters Tag / phone launches app through custom URI scheme 18
  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. STORING APP DATA ON NFC TAGS Recommended 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. MULTI-USER COLLABORATION 21
  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. ESTABLISHING Long Term Connection Trigger Browse Interact with Tap Start Search NFC Bt, WiFi, etc. 23
  24. TAP TO TRIGGER App not installed App installed 24
  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. NFCRPS Multiplayer game Tap launches app on 2nd phone Players decide next move on own device Both see the winner! Code Demo 26
  27. TOOLS & RESOURCES 27
  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. Thank you! Andreas Jakl [@mopius] nfcinteractor.com Code examples online: bit.ly/NfcWebinar 29
Advertisement