Chapter 17. Multipeer Augmented Reality
In this chapter, we will see how to create a multi-peer augmented reality app. Until now, we have only made applications that run on a single device and we didn't have to worry about how to connect with an another device and also share data with the other device.
Apple already has a framework to connect with other devices and manage data transfer between the devices. This framework for connecting between devices, called Multipeer Connectivity, has been around since iOS 7. In iOS 12, Apple has extended the functionality of the framework for developers to create Multipeer applications.
In this chapter, we will cover the following topics:
- Multipeer connectivity framework overview
- Creating a multipeer session class
- Creating a UI for the app
- Setting outlets and adding variables
- Initializing the view
- Updating session and tracking
- Hosting and joining the session
- Sending and receiving data
- Initializing a multipeer session
- Testing the application