Skip to content
Discussion options

You must be logged in to vote

You don't need to wait for Capacitor for this. ACCESS_LOCAL_NETWORK is a regular Android runtime permission, so your app can declare and request it today.

From the official docs:

  • On Android 16 it's opt-in. On Android 17 it's enforced for apps targeting SDK 37+. Below targetSdk 37, INTERNET still grants it implicitly, which is why everything worked before you bumped the target.
  • It's a dangerous (runtime) permission in the NEARBY_DEVICES group. Declaring it in the manifest isn't enough; the user has to grant it.
  • When it's denied, LAN TCP connections usually time out, and UDP/mDNS fail with EPERM. That's the "silent" failure you're seeing. Internet traffic isn't affected.

1. Declare it in a…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@moose4lord
Comment options

@ahmetoguzer
Comment options

Answer selected by moose4lord
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants