Skip to content

fix: prompt for macOS local network access - #22

Merged
zibo-chen merged 3 commits into
masterfrom
agent/macos-local-network-permission
Aug 13, 2026
Merged

fix: prompt for macOS local network access#22
zibo-chen merged 3 commits into
masterfrom
agent/macos-local-network-permission

Conversation

@zibo-chen

Copy link
Copy Markdown
Owner

What changed

  • declare the macOS local-network usage description and Bonjour service
  • probe Local Network authorization through temporary Bonjour publish/discovery
  • show denied access in the desktop readiness panel and open the relevant System Settings page
  • recheck permission after returning to the app
  • add readiness resolver tests

Why

Issue #21 confirmed that macOS clients could not reach nearby Windows and Android devices until SubnetDesk was manually enabled under Privacy & Security → Local Network. The app previously neither triggered the system prompt nor surfaced the missing permission.

Validation

  • flutter test --no-pub test/setup_readiness_test.dart
  • flutter analyze --no-pub lib/desktop/setup_readiness.dart lib/utils/platform_channel.dart test/setup_readiness_test.dart
  • plutil -lint flutter/macos/Runner/Info.plist
  • git diff --check

Closes #21

@zibo-chen
zibo-chen marked this pull request as ready for review August 13, 2026 15:28
@zibo-chen
zibo-chen merged commit 3f645e6 into master Aug 13, 2026
24 checks passed
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.

最新1.2.2版本无法识别本地局域网IP,且提示服务未运行,但设置中服务已配置为启动

1 participant