I am unable to re-detect nearby peers after I stopAdvertising() and advertise() again later. The only way I can re-detect nearby peers is if I completely restart the app. I could persist the list of nearbyPeers but that defeats the purpose of having an up-to-date list of connectable devices to talk to. I'd much rather prefer a current list of detected peers each time I browse().
Is there some way to make the program "forget" that it had detected these peers before and try to detect them again?
I am unable to re-detect nearby peers after I
stopAdvertising()
andadvertise()
again later. The only way I can re-detect nearby peers is if I completely restart the app. I could persist the list ofnearbyPeers
but that defeats the purpose of having an up-to-date list of connectable devices to talk to. I'd much rather prefer a current list of detected peers each time Ibrowse()
.Is there some way to make the program "forget" that it had detected these peers before and try to detect them again?