pusherman / react-native-network-info

React Native library for getting information about the devices network
MIT License
356 stars 106 forks source link

Support For IOS 13 #112

Open Adi2612 opened 4 years ago

Adi2612 commented 4 years ago

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 ?

manoj-makkuboy commented 4 years ago

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.

Adi2612 commented 4 years ago

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