alexkendall / react-native-bluetooth-cross-platform

Cross-Platform Bluetooth & WiFi React Native Module. Powered by underdark http://underdark.io/.
179 stars 35 forks source link

Re-detecting peers after restarting broadcast requires the app to reset first #38

Closed azanli closed 5 years ago

azanli commented 6 years ago

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?

HZSamir commented 5 years ago

+1

azanli commented 5 years ago

@Unforgiven-wanda #55