ios_network_info 0.1.0 copy "ios_network_info: ^0.1.0" to clipboard
ios_network_info: ^0.1.0 copied to clipboard

outdated

Dart plugin package for accessing network information from Flutter. iOS-only plugin.

ios_network_info #

This is a Dart plugin package for accessing network information from Flutter. This is an iOS-only plugin.

Usage #

import 'package:ios_network_info/ios_network_info.dart';

getNetworkInfo() async {
  bssid = await IosNetworkInfo.bssid;
  ssid = await IosNetworkInfo.ssid;
}

For a working example app, see the example directory

Limitations #

This Flutter plugin relies on CNCopyCurrentNetworkInfo which on iOS 12 and later requires the com.apple.developer.networking.wifi-info entitlement.

(CNCopyCurrentNetworkInfo) To use this function in iOS 12 and later, enable the Access WiFi Information capability in Xcode. For more information, see Access WiFi Information Entitlement.

Requesting this entitlement successfully is only available if you joined the Apple Developers Program.

Add "Access WiFi Information" capability to your app (otherwise, you'll receive nulls).

Don't forget to enable "Access WiFi Information" capability

Note: "Access WiFi Information" capability is not the same as "Wireless Accessory Configuration".

Alternatives #

  • connectivity plugin lets you get the WiFi SSID (wifiName). After my pull request is merged, you can also get the BSSID of the current WiFi network
1
likes
0
pub points
20%
popularity

Publisher

unverified uploader

Dart plugin package for accessing network information from Flutter. iOS-only plugin.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on ios_network_info