9.3.2 • Published 2 years ago

@saasapp/netinfo v9.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

隐藏了 getSSID 和 getBSSID,位于android/src/main/java/com/reactnativecommunity/netinfo/ConnectivityReceiver.java 第207行至227行

// // Get the SSID
// try {
//     String initialSSID = wifiInfo.getSSID();
//     if (initialSSID != null && !initialSSID.contains("<unknown ssid>")) {
//         // Strip the quotes, if any
//         String ssid = initialSSID.replace("\"", "");
//         details.putString("ssid", ssid);
//     }
// } catch (Exception e) {
//     // Ignore errors
// }

// // Get the BSSID
// try {
//     String bssid = wifiInfo.getBSSID();
//     if (bssid != null) {
//         details.putString("bssid", bssid);
//     }
// } catch (Exception e) {
//     // Ignore errors
// }