react-native-iot-wifi
react-native-iot-wifi copied to clipboard
Can't get ssid after ios 13
when i update my device from 12.* to 13.2 , the library can't get ssid. I think the reason is the new policy of apple : Apple have altered the use of CNCopyCurrentNetworkInfo in iOS 13 to require one of: The app uses Core Location, and has the user’s authorization to use location information. The app uses the NEHotspotConfiguration API to configure the current Wi-Fi network. The app has active VPN configurations installed. If none of those are present, it'll report a dummy SSID (iOS12-) or null (iOS13+) instead of the real one.
@littleflyer , did you find a solution for this issue? I installed iOS 13.3 beta which supposedly had a fix for this but the issue has persisted. I also added the location permission but no luck. I'm able to connect to the wifi network but then it disconnects after 5 - 10 seconds.
setting configuration.joinOnce = false; seems to do the trick. I'll be making these changes in my fork: https://github.com/josectobar/react-native-iot-wifi
setting
configuration.joinOnce = false;seems to do the trick. I'll be making these changes in my fork: https://github.com/josectobar/react-native-iot-wifi
i have used your fork and tried example provided in your fork but it gives error:'cant get ssid' in ios 13

Sorry, I haven't updated the example folder yet, this is probably why it's not working for you. I'll try to get it updated in the following days.
@adnan1naeem ☝️