ios_network_info 0.1.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

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

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

GitHub #

The source code is available on GitHub smaho-gmbh/ios_network_info.

This Flutter plugin is created by the SMAHO engineering team.

0.1.2 #

  • Make package homepage more helpful

0.1.1 #

  • Improve docs, READMEs
  • Clean up Android code (which only fails, but anyway...)

0.1.0 #

  • Initial release
  • Support for current network BSSID and SSID (wifi name)


ios_network_info_example #

Demonstrates how to use the ios_network_info plugin.

About the example #

In the example app, we fetch the SSID and BSSID on start. There's a refresh app bar action that requests the WiFi SSID and BSSID again. When the phone is not connected to a WiFi network, both getters return null.

ios_network_info example app in action

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  ios_network_info: ^0.1.2

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:ios_network_info/ios_network_info.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies