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

connectTo Method it's crashing #1

Closed wellmonge closed 5 years ago

wellmonge commented 6 years ago

At line 283 theres a peace of code, I'm getting this error when I trying to connect to WIFI- WPA/WPA2 PSK:

283 - boolean enableNetwork = wifi.enableNetwork(updateNetwork, true); 284 - if ( !enableNetwork ) { 285 - return false; 286 - };

ENVIROMENT: RN: 0.54.0 react-native-wifi: 1.0.1 node: 8.9.1 npm: 5.6.0

Digging on Android developers documentation I found this...

image

pstanton commented 6 years ago

works for me on android (if wifi is enabled first), however crashes every time on iOS. the network is connected to, however my app crashes.