blackdeve / react-native-wifi

A react-native implementation for viewing and connecting to Wifi networks on Android and iOS devices.
76 stars 89 forks source link

Read SSID not working with iOS React-Native 0.57 #5

Open flybayer opened 6 years ago

flybayer commented 6 years ago

Best I can tell this is a compatibility issue with the latest React-Native version on iOS (Android works fine).

I get this warning when loading the app:

screen shot 2018-09-22 at 17 25 31

And this error when calling getCurrentWifiSSID()

screen shot 2018-09-22 at 17 25 19
chrisbobbe commented 6 years ago

I'm also seeing that warning and this error on iOS. For a while, I was confused about the "Cannot detect SSID error"; I thought it was referring to an attempt to connect to an SSID, while it actually refers to an attempt to read the currently connected SSID. Could the error message be made clearer, something like "Cannot detect current SSID"?

chrisbobbe commented 6 years ago

Try enabling the "Access WiFi Information capability; this seems to work for me:

screen shot 2018-10-03 at 9 57 31 am
jnystrom commented 5 years ago

I am getting this error whenever I am on Cell, and not connected to wifi, but want to connect to a wifi ssid. I am also not able to actually catch the error...any ideas?