Search results for

[tags:wwdc20-10209]

11 results found

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.2k
Feb ’21
Distance and Direction Vector Accuracy
Are there any rule-of-thumb accuracy specifications we can use to plan our Nearby Interaction apps? For example, in ideal cases (phones are facing each other with clear line of sight), what sort of distance measurement accuracy can we expect? What about the refresh rate for position updates? 10Hz? Similarly, when conditions are less than ideal (for example, devices are not facing each other in the antennas beam pattern), does the distance accuracy degrade significantly? I know we'll lose the direction vector. Thanks!
1
0
536
Jun ’20