ios - Using Multipeer Connectivity Framework and saving the nearby devices founded -


i new swift , developing multipeer connectivity app course project. app has online log-in feature stores each user information in firebase(the backend support).

once app gets wifi connection, want have 'friends list' feature in app , add other app users list nearby devices found. far, way think of associate peerid existing app user firebase. however, according documentation, peerid seems associated device if 2 different users used same device sign in, approach can't work. there better way achieve goal?

in opinion, depends on want go application how develop regarding business. 1 of possibility 1 user point of time registered 1 device. can provide simple login screen users enter name map device id , save firebase. username considered user id well. if try sign in device, check whether or not existed in system. if existed, ask them wish register device or not, update map (user id , device id) firebase.

from friend list, still list of username of friends,in can add nearby devices found.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -