Repository navigation
|
My app was flagged or rejected on Google Play for this. Local network access without the ACCESS_LOCAL_NETWORK runtime permission. Which guideline is this, how do I find it in my project, and how do I fix it before I resubmit? |
Replies: 1 comment
|
Guideline. Android 17 behavior changes for apps targeting API 37 (developer.android.com/about/versions/17/behavior-changes-17) (Google Play) Severity in the playbook. high What triggers it. From Android 17 enforcement is mandatory for apps targeting API 37 or later. mDNS, NSD discovery, multicast, and direct LAN connections fail with a security exception unless the app declares and requests ACCESS_LOCAL_NETWORK. What to search your code for. How to fix it. Declare android.permission.ACCESS_LOCAL_NETWORK, request it at runtime before any LAN discovery or connection, and degrade gracefully when denied. The guard reports this as This is a maintainer FAQ for app-store-compliance, an open playbook and pre-submission guard for App Store and Google Play review. Run |
Guideline. Android 17 behavior changes for apps targeting API 37 (developer.android.com/about/versions/17/behavior-changes-17) (Google Play)
Severity in the playbook. high
What triggers it. From Android 17 enforcement is mandatory for apps targeting API 37 or later. mDNS, NSD discovery, multicast, and direct LAN connections fail with a security exception unless the app declares and requests ACCESS_LOCAL_NETWORK.
What to search your code for.
NsdManager,MulticastSocket,_tcp.local,mDNS,192.168.How to fix it. Declare android.permission.ACCESS_LOCAL_NETWORK, request it at runtime before any LAN discovery or connection, and degrade gracefully when denied.
The guard reports this as
ANDROID…