Skip to content

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

@Casba43

Description

@Casba43

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions