Skip to content

Fix macOS startup hang during Wi-Fi SSID lookup#2189

Open
liewstar wants to merge 1 commit into
chen08209:mainfrom
liewstar:fix/macos-wifi-ssid-startup-hang
Open

Fix macOS startup hang during Wi-Fi SSID lookup#2189
liewstar wants to merge 1 commit into
chen08209:mainfrom
liewstar:fix/macos-wifi-ssid-startup-hang

Conversation

@liewstar

@liewstar liewstar commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • make macOS Wi-Fi SSID lookup permission-aware before touching CoreWLAN
  • move native SSID reads off the main queue and complete them with a timeout
  • make Dart-side SSID/permission calls fail safely instead of blocking startup
  • refresh SSID after manual location permission grants and improve denied guidance

Fixes #2188

Testing

  • swiftc -parse -parse-as-library plugins/wifi_ssid/macos/Classes/WifiSsidPlugin.swift
  • flutter test plugins/wifi_ssid/test/wifi_ssid_manager_test.dart
  • git diff --check

@liewstar liewstar force-pushed the fix/macos-wifi-ssid-startup-hang branch from 3bdc6d9 to a3e63d3 Compare July 5, 2026 08:58
chenx-dust added a commit to chenx-dust/FlClash-Patched that referenced this pull request Jul 8, 2026
(chen08209#2189)

Co-authored-by: liewstar <2935437378@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS startup can hang while reading Wi-Fi SSID without location permission

1 participant