flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

IOS 14 Allow Apps Having Access to Local Network

Open HelloBytes opened this issue 3 years ago • 4 comments

🚀 Feature Requests

In IOS 14, users have to give permission to access local network

HelloBytes avatar Sep 09 '20 09:09 HelloBytes

any update on this?

niktses avatar Sep 22 '20 11:09 niktses

This permission is requested & accepted implicitly when a App tries to access the local network. Requesting it through this plugin may require a major workaround.

ened avatar Oct 04 '20 16:10 ened

This is one "official" workaround I found for iOS apps: https://developer.apple.com/forums/thread/663768 I am going to investigate this issue more, but I think there might be a way of just creating a dummy call in flutter to trigger the permission.

KrystofM avatar Nov 22 '20 09:11 KrystofM

https://stackoverflow.com/questions/63525026/what-triggers-the-would-like-to-find-and-connect-to-devices-on-your-local-netwo#comment119607816_64210041

jakobleck avatar Feb 15 '22 10:02 jakobleck

At the moment both Android and iOS don't provide APIs to explicitly check or request local network permissions.

On Android the ACCESS_NETWORK_STATE permission is considered a "normal permission" which means it is granted by default if the application declares it in its AndroidManifest.xml file. See also "Connect to the network" article in the Android documentation.

On iOS the permissions are implicitly handled by the operating system as soon as on of the connection APIs are accessed. This means there isn't a reliable way for us to determine if permissions are granted or not.

In the light of this I will close this issue as "not planned".

mvanbeusekom avatar Sep 08 '23 13:09 mvanbeusekom