react-native-ble-plx
react-native-ble-plx copied to clipboard
fix(android): remove device from discovered devices cache
The way discoveredDevices is handled is quite suspect.
This PR addresses issue #1279 by removing devices from the discovered devices cache in the Android implementation when they're no longer available. This should allow devices that go out of range and then return to be properly rediscovered during subsequent scans. This is a potential fix that needs further testing in various environments to confirm it resolves the issue completely.