react-native-iot-wifi icon indicating copy to clipboard operation
react-native-iot-wifi copied to clipboard

Can't get ssid after ios 13

Open littleflyer opened this issue 6 years ago • 5 comments
trafficstars

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 avatar Nov 03 '19 11:11 littleflyer

@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.

josectobar avatar Nov 12 '19 16:11 josectobar

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

josectobar avatar Nov 12 '19 18:11 josectobar

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

6A79EBB9-A83A-4FE2-82D9-3BCECFCC6D34

adnan1naeem avatar Dec 18 '19 08:12 adnan1naeem

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.

josectobar avatar Dec 18 '19 21:12 josectobar

@adnan1naeem ☝️

josectobar avatar Dec 18 '19 22:12 josectobar