react-native-network-info icon indicating copy to clipboard operation
react-native-network-info copied to clipboard

Support For IOS 13

Open Adi2612 opened this issue 6 years ago • 2 comments

I am trying to get BSSID on IOS 13 but its returning undefined instead. As there is a change in APIs after IOS 13 release. So, Is present react-native-network-info supports IOS 13 ? What other permission do I need to support this ?

Adi2612 avatar Jan 06 '20 22:01 Adi2612

This library uses CNCopyCurrentNetworkInfo API. So in IOS 13, you have to explicitly ask for Location permissions. After the user grants the location permission the getBSSID resolves to the required value.

manoj-makkuboy avatar Jan 15 '20 13:01 manoj-makkuboy

thanks @manoj-makkuboy , I tried this too but not working. :(

Adi2612 avatar Jan 16 '20 17:01 Adi2612