Post

Replies

Boosts

Views

Activity

How to connect multiple devices using the NearbyInteractions Framework
I've been trying to develop an app that implements the NearbyInteraction Framework to connect multiple devices at once. I have been reading through the documentation and following along with the sample code provided by Apple at a WWDC20 session, which can be found here: https://developer.apple.com/documentation/nearbyinteraction/implementing_interactions_between_users_in_close_proximity I have been attempting to adapt this code to create concurrent NISessions for multiple connections, but without success. The use of the MultipeerConnectivity framework seems to be working fine; when I start one session, the program works perfectly, however, if I attempt to add a third phone (creating a second session), after receiving the token from this new user, the initial session becomes invalidated and stops working. I'm not sure how to go from the sample code provided to a program that can create more than one session at a time, and was hoping for some help to point me in the right direction. Thanks!
1
0
1.1k
Feb ’21