-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Android): getCurrentWifiSSID return null if '<unknown ssid>' #148
fix(Android): getCurrentWifiSSID return null if '<unknown ssid>' #148
Conversation
Actually what happens on iOS if you are not connected? Is empty string returned or an exception? |
@eliaslecomte, looking at the code: react-native-wifi-reborn/ios/RNWifi.m Lines 35 to 46 in 1049665
It looks like iOS returns |
Thanks! I've aligned this with Android :-). |
@eliaslecomte, taking a deeper look, it looks like when get a react-native-wifi-reborn/ios/RNWifi.m Lines 183 to 192 in 1049665
What do you think? Should we also reject in Android or change the iOS part in order to return null too? |
@Rapsssito I've changed the Android code to also reject in this case. |
## [4.3.6](v4.3.5...v4.3.6) (2021-01-10) ### Bug Fixes * **Android:** getCurrentWifiSSID return null if '<unknown ssid>' ([#148](#148)) ([336668a](336668a))
🎉 This PR is included in version 4.3.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sometimes while switching network, android returns .
You aren't connected, so let's simply return an empty string.