plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Question]: network_info_plus: ^4.0.2 for MacOS Sonoma 14 returns null when calling _networkInfo.getWifiBSSID();

Open LiveRock opened this issue 2 years ago • 5 comments

Platform MacOS 14.0

Plugin connectivity_plus

Version 4.0.2

Flutter SDK 3.13.7 Stable

Code Sample

final _networkInfo = NetworkInfo();
wifiName = await _networkInfo.getWifiName();

Flutter Doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.13.7, on macOS 14.0 23A344 darwin-arm64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.0) [✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✓] Android Studio (version 2021.1) [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.83.1) [✓] Connected device (1 available) [✓] Network resources

! Doctor found issues in 1 category.

What is your question?

Using network_info_plus: ^4.0.2

On MacOS Sonoma 14,

calling _networkInfo.getWifiBSSID()

returns null

Previously, when I was using the last MacOS and network_info_plus 4.0.0, it was working. I am not sure whether it is Sonoma or network_info_plus 4.0.2 that is causing this. Xcode also upgraded to 15.0

Help!

Checklist before submitting a question

  • [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 am 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

LiveRock avatar Oct 13 '23 09:10 LiveRock

Looks like similar to #2156 and #1652

vbuberen avatar Oct 13 '23 13:10 vbuberen

#2156 and #1652 are related to iOS. I am using MacOS. I checked, there are no "Access WiFi information capability" for MacOS in Xcode.

LiveRock avatar Oct 14 '23 04:10 LiveRock

@LiveRock same on me. Still no solution for the problem

github-actions[bot] avatar Oct 23 '23 00:10 github-actions[bot]

flutter 3.13.8 也是同样有这个问题

988494 avatar Oct 25 '23 14:10 988494

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 Jan 24 '24 00:01 github-actions[bot]

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 Apr 24 '24 00:04 github-actions[bot]

There is an explanation regarding MacOS that there is a need for proper location privilege:

https://github.com/fluttercommunity/plus_plugins/issues/2156#issuecomment-2024966551

vbuberen avatar Apr 24 '24 05:04 vbuberen

Still facing the same issue with MacOS with the latest versions:

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale en-SG) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✓] Android Studio (version 2023.1) [✓] VS Code (version 1.89.1) [✓] Connected device (2 available) ! Error: Browsing on the local area network for Peter iPhone 15 Pro Max. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources

LiveRock avatar Jun 03 '24 08:06 LiveRock