Skip to content

Local network permission - #13795

Merged
sfshaza2 merged 3 commits into
flutter:mainfrom
mboetger:local-network-permission
Aug 25, 2026
Merged

Local network permission#13795
sfshaza2 merged 3 commits into
flutter:mainfrom
mboetger:local-network-permission

Conversation

@mboetger

Copy link
Copy Markdown
Contributor

Android 17 adds a new runtime permission that affects dart sockets. This adds a page explaining how developers should handle this.

Partially addresses: #184859

Presubmit checklist

  • If you are unwilling, or unable, to sign the CLA, even for a tiny, one-word PR, please file an issue instead of a PR.
  • If this PR is not meant to land until a future stable release, mark it as draft with an explanation.
  • This PR follows the Google Developer Documentation Style Guidelines—for example, it doesn't use i.e. or e.g., and it avoids I and we (first-person pronouns).
  • This PR uses semantic line breaks
    of 80 characters or fewer.

@mboetger
mboetger requested review from a team and sfshaza2 as code owners August 24, 2026 22:57

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new documentation page detailing how to declare and request Android local network permissions in Flutter when using Dart sockets, and updates the platform integration index and sidebar navigation. The review feedback suggests improving the Dart code example to avoid automatically calling openAppSettings() when permissions are permanently denied, as this can disrupt the user experience, and recommends advising developers to display an explanatory dialog first.

@flutter-website-bot

Copy link
Copy Markdown
Collaborator

Staged preview of the updated flutter.dev site (updated for commit 81c4cc3):

https://flutter-dev-230821--www-pr13795-local-network-permissi-etkz38ns.web.app

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

…ork-permission.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@sfshaza2
sfshaza2 merged commit 5932f73 into flutter:main Aug 25, 2026
12 of 14 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.

3 participants