Managing a group activity session
You have created the ShareOrder structure to represent a group activity for the ShareOrder app, and you have added a button to the app's navigation bar to activate the group activity during a FaceTime session. Now you need to add code to allow participants to join this group activity session and keep all participants in sync with one another. The steps required to implement this are as follows:
- Create a
GroupSessionobject that lets the app join a group activity session. - Create a
GroupSessionMessengerobject that lets the app send and receive messages to synchronize content.Important Information
You can learn more about session management at this link: https://developer.apple.com/documentation/groupactivities/joining-your-app-to-a-shared-activity.
Let's see how to implement and configure a GroupSession object for the ShareOrder app in the next section.
Implementing a GroupSession object
The ShareOrder app currently...