devstepbcn / react-native-android-wifi

A react-native module for viewing and connecting to Wifi networks on Android devices.
ISC License
212 stars 121 forks source link

loadWifiList when device screen off #6

Open EmaSciacca opened 7 years ago

EmaSciacca commented 7 years ago

Hi,

I would like to periodically invoke loadWifiList function in order to log nearby Wifi networks data. In order to log this data even if the app is not in foreground I'm using an external library (react-native-background-timer). However, when device screen is switched off, the application keeps on logging periodically wifi data but it doesn't refresh them, that is it continues to log the data it retrieved the last time the screen was on. When the screen is switched on again, the app logs new data correctly.

Is there a way to make the app refresh wifi data even if the screen is switched on?

I'm testing my app on an android device with 5.1 OS version

SkyTreasure commented 5 years ago

Hi @EmaSciacca were you able to find any solution for this?

jdegger commented 5 years ago

We are also seeing this behavior. However since this issue has been open since 2016 we are expecting this won't be fixed anytime soon?

Anybody any pointers to why this is happening? We are not seeing this behavior on all phones.