plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Bug]: iOS version 18+ cannot retrieve SSID(returns NULL)

Open Casba43 opened this issue 4 months ago • 1 comments

Platform

iOS 18

Plugin

network_info_plus

Version

6.1.4

Flutter SDK

3.29.0

Steps to reproduce

The error is reproduced when a iOS device of, from what I know, version 18+ tries to get the wifi name with the getWifiName() function it returns null. This while other iOS version do retrieve the SSID correctly

Code Sample

final fetchedWifiName = await NetworkInfo().getWifiName();
wifiName = fetchedWifiName?.replaceAll('"', '') ?? 'Unknown WiFi';
logger.f('ADHOC COMMISSIONING: $wifiName');

Logs

[+3151 ms] flutter: \^[[38;5;12m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;12m│ 💡 IpScannerPage stopScanner<…>
[        ] flutter: \^[[38;5;12m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;199m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;199m│ 👾 canceled fallbackTimer<…>
[        ] flutter: \^[[38;5;199m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;12m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;12m│ 💡 IP SCANNER dispose<…>
[        ] flutter: \^[[38;5;12m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[  +19 ms] flutter: ➜ Translation-key in "en-US" is missing: "Setup network".
[   +2 ms] flutter: ➜ Translation-key in "en-US" is missing: "Back".
[   +4 ms] flutter: ➜ Translation-key in "en-US" is missing: "Next".
[   +1 ms] flutter: \^[[38;5;199m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;199m│ 👾 WIFIBOX STATE: Updating state from WifiboxAlertDialogTypes.notVisible to WifiboxAlertDialogTypes.notVisible <…>
[        ] flutter: \^[[38;5;199m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;199m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[   +1 ms] flutter: \^[[38;5;199m│ 👾 WIFIBOX STATE: Updating state from WifiboxAlertDialogTypes.notVisible to WifiboxAlertDialogTypes.notVisible <…>
[        ] flutter: \^[[38;5;199m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[   +8 ms] flutter: \^[[38;5;199m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;199m│ 👾 ADHOC COMMISSIONING: Fetching wifi name<…>
[        ] flutter: \^[[38;5;199m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;199m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[        ] flutter: \^[[38;5;199m│ 👾 ADHOC COMMISSIONING: Unknown WiFi<…>
[   +8 ms] flutter: \^[[38;5;199m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[  +11 ms] flutter: ➜ Translation-key in "en-US" is missing: "Setup network".
[   +1 ms] flutter: ➜ Translation-key in "en-US" is missing: "Back".
[  +32 ms] flutter: ➜ Translation-key in "en-US" is missing: "Next".

Flutter Doctor

[✓] Flutter (Channel stable, 3.32.6, on macOS 15.3.2 24D81 darwin-arm64, locale en-NL) [533ms]
    • Flutter version 3.32.6 on channel stable at /opt/homebrew/Caskroom/flutter/3.29.3/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 077b4a4ce1 (3 weeks ago), 2025-07-08 13:31:08 -0700
    • Engine revision 72f2b18bb0
    • Dart version 3.8.1
    • DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [1,948ms]
    • Android SDK at /Users/casvandenwijngaard/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • ANDROID_HOME = /Users/casvandenwijngaard/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 16.4) [1,531ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16F6
    ! CocoaPods 1.15.2 out of date (1.16.2 is recommended).
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods

[✓] Chrome - develop for the web [12ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2.1) [11ms]
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-77717980-b509.4)

[✓] Android Studio (version 2024.3) [10ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[✓] Connected device (4 available) [6.3s]
    • moto g200 5G (mobile)       • ZY22F3QFWF                • android-arm64  • Android 12 (API 31)
    • iQontrol iPad mini (mobile) • 00008020-001C10CA1ED1002E • ios            • iOS 18.2 22C151
    • macOS (desktop)             • macos                     • darwin-arm64   • macOS 15.3.2 24D81 darwin-arm64
    • Chrome (web)                • chrome                    • web-javascript • Google Chrome 138.0.7204.169

[✓] Network resources [576ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Checklist before submitting a bug

  • [x] I searched issues in this repository and couldn't find such bug/problem
  • [x] I Google'd a solution and I couldn't find it
  • [x] I searched on StackOverflow for a solution and I couldn't find it
  • [x] I read the README.md file of the plugin
  • [x] I'm using the latest version of the plugin
  • [x] All dependencies are up to date with flutter pub upgrade
  • [x] I did a flutter clean
  • [x] I tried running the example project

Casba43 avatar Jul 29 '25 07:07 Casba43

Have you read the documentation? Can you confirm that your app has com.apple.developer.networking.wifi-info entitlement? Because it seems like an issue with missing entitlement which is described in the README: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/network_info_plus/network_info_plus#ios-14

vbuberen avatar Jul 29 '25 13:07 vbuberen

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Dec 20 '25 00:12 github-actions[bot]