Hello,
I just wanted to confirm.. If I were to start 2 simultaneous NearbyInteraction sessions with 2 peers, it would generate a unique token for me to send to a peer for each session, correct?
Thanks!
Post
Replies
Boosts
Views
Activity
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!
I was wondering, about how many NI sessions can you reliably have going simultaneously if using MultipeerConnectivity to send and receive tokens?