Closed Sreadon closed 3 years ago
SDK scan only devices started advertisingPeer and the device scan must is BrowsingPeers
So a device can't scan (BrowsingPeers) and simultaneously be visible for others (advertisingPeer)?
Just use both startAdvertisingPeer() and startBrowsingForPeer() without await.
Just use both startAdvertisingPeer() and startBrowsingForPeer() without await.
Thank you, that seems to do the job :)
Hi,
First of all thanks for this plugin. To let you know what I try to accomplish: imagine a room with 2 phones, when phone is on "scanning room" page, the phone will start advertising a custom ID (passed to deviceName) and at the same time browse for other users. During my testing, I've been able to see other phones, but not if I'm trying to browse AND advertise at the same time. Is that normal? I think yes, but to be sure I prefer to ask.
With this code I can't see any devices neither can be seen
But if I'm commenting "startAdvertisingPeer()" on one device and "startBrowsingForPeer" on the other, I can see the device that is advertising perfectly with the one in "browsing mode".
Thank you