Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Interconnect All the Things!

Interconnect All the Things!

iOScon 2018 talk about MultipeerConnectivity framework and how to use it to create powerful interactions in your applications

F2f5f7bc8bd3bd71e51d303e9881fe78?s=128

Esteban Torres

March 23, 2018
Tweet

Transcript

  1. MULTIPEER CONNECTIVITY ESTEBAN TORRES @ESTTORHE Esteban Torres @esttorhe [2018]

  2. INTERCONNECT ALL THE THINGS! Esteban Torres @esttorhe [2018]

  3. WHAT IS IT? WHAT CAN IT DO? HOW DOES IT

    WORK? Esteban Torres @esttorhe [2018]
  4. …supports the discovery of services provided by nearby devices and

    supports communicating with those services through messagebased data, streaming data, and resources (such as files). — Apple Esteban Torres @esttorhe [2018]
  5. WHAT IS IT? Esteban Torres @esttorhe [2018]

  6. Esteban Torres @esttorhe [2018]

  7. WHAT’S SO BIG ABOUT IT? Esteban Torres @esttorhe [2018]

  8. Esteban Torres @esttorhe [2018]

  9. ! Esteban Torres @esttorhe [2018]

  10. Esteban Torres @esttorhe [2018]

  11. FEATURES out OF THE ! Esteban Torres @esttorhe [2018]

  12. Esteban Torres @esttorhe [2018]

  13. Esteban Torres @esttorhe [2018]

  14. Esteban Torres @esttorhe [2018]

  15. 1. Multiple SUPPORTED CONNECTIVITY interfaces Esteban Torres @esttorhe [2018]

  16. SUPPORTED CONNECTIVITY INTERFACES BLUETOOTH Esteban Torres @esttorhe [2018]

  17. SUPPORTED CONNECTIVITY INTERFACES WIFI Esteban Torres @esttorhe [2018]

  18. SUPPORTED CONNECTIVITY INTERFACES PEER TO PEER WiFi Esteban Torres @esttorhe

    [2018]
  19. Esteban Torres @esttorhe [2018]

  20. PEER TO PEER WiFi: DIFFERENT ACCESS POINTS - Not even

    on an Access Point - One on an Access Point and the other not in one AP Esteban Torres @esttorhe [2018]
  21. 2. Interface SELECTION Esteban Torres @esttorhe [2018]

  22. Esteban Torres @esttorhe [2018]

  23. Esteban Torres @esttorhe [2018]

  24. Esteban Torres @esttorhe [2018]

  25. Esteban Torres @esttorhe [2018]

  26. Esteban Torres @esttorhe [2018]

  27. 3. OUT OF THE ! UI Esteban Torres @esttorhe [2018]

  28. 4. DIFFERENT DATA «types» Esteban Torres @esttorhe [2018]

  29. MESSAGES Esteban Torres @esttorhe [2018]

  30. • RELIABLE • UNRELIABLE Esteban Torres @esttorhe [2018]

  31. STREAM Esteban Torres @esttorhe [2018]

  32. RESOURCES Esteban Torres @esttorhe [2018]

  33. 5. AUTHENTICATION & ENCRYPTION Esteban Torres @esttorhe [2018]

  34. ENCRYPTION • None • Optional • Required Esteban Torres @esttorhe

    [2018]
  35. HOW DOES IT REALLY WORK? Esteban Torres @esttorhe [2018]

  36. Esteban Torres @esttorhe [2018]

  37. DISCOVERY Esteban Torres @esttorhe [2018]

  38. 1 1 https://www.appcoda.com/intro-multipeer-connectivity-framework-ios-programming/ Esteban Torres @esttorhe [2018]

  39. SESSION Esteban Torres @esttorhe [2018]

  40. WHAT ARE THE RESPONSIBILITIES OF AN ADVERTISER? Esteban Torres @esttorhe

    [2018]
  41. 1 - Make the device discoverable Esteban Torres @esttorhe [2018]

  42. 2 - Present the invitations to the user Esteban Torres

    @esttorhe [2018]
  43. 3 - Handle the user’s response Esteban Torres @esttorhe [2018]

  44. 4 - Send invitation response back to the browser Esteban

    Torres @esttorhe [2018]
  45. 5 - Connect peer to a session Esteban Torres @esttorhe

    [2018]
  46. WHAT ARE THE RESPONSIBILITIES OF A BROWSER? Esteban Torres @esttorhe

    [2018]
  47. 1- Present nearby peers / search for peers and present

    them to the user Esteban Torres @esttorhe [2018]
  48. 2 - Send the invitation to the selected peers Esteban

    Torres @esttorhe [2018]
  49. 3 - Handle the invitation responses Esteban Torres @esttorhe [2018]

  50. 4 - Connect peers to session Esteban Torres @esttorhe [2018]

  51. Esteban Torres @esttorhe [2018]

  52. Multiple DEVICES Same USER Esteban Torres @esttorhe [2018]

  53. Esteban Torres @esttorhe [2018]

  54. Esteban Torres @esttorhe [2018]

  55. Esteban Torres @esttorhe [2018]

  56. Esteban Torres @esttorhe [2018]

  57. Esteban Torres @esttorhe [2018]

  58. WHAT ARE good USE CASES FOR IT? Esteban Torres @esttorhe

    [2018]
  59. • COLLABORATIVE EDITING Esteban Torres @esttorhe [2018]

  60. • FILE SHARING Esteban Torres @esttorhe [2018]

  61. • COORDINATION ACROSS DEVICES Esteban Torres @esttorhe [2018]

  62. EVERYWHERE* *RESTRICTIONS MAY APPLY Esteban Torres @esttorhe [2018]

  63. • SENSOR DATA AGGREGATION Esteban Torres @esttorhe [2018]

  64. Esteban Torres @esttorhe [2018]

  65. Esteban Torres @esttorhe [2018]

  66. One VERY CONVOLUTED example Esteban Torres @esttorhe [2018]

  67. LET'S WRAP UP Esteban Torres @esttorhe [2018]

  68. Esteban Torres @esttorhe [2018]

  69. Esteban Torres HTTPS://ESTEBANTORR.ES @esttorhe Esteban Torres @esttorhe [2018]

  70. THIS PRESENTATION WILL SOON BE AVAILABLE ON THE CONFERENCE WEBSITE

    AT THE FOLLOWING LINK https://skillsmatter.com/conferences/ 9319-ioscon-2018-the-conference-for-ios-and-swift- developers#skillscasts Esteban Torres @esttorhe [2018]
  71. THANKS! Esteban Torres @esttorhe [2018]