flutter-permission-handler
flutter-permission-handler copied to clipboard
IOS 14 Allow Apps Having Access to Local Network
🚀 Feature Requests
In IOS 14, users have to give permission to access local network
any update on this?
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.
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.
https://stackoverflow.com/questions/63525026/what-triggers-the-would-like-to-find-and-connect-to-devices-on-your-local-netwo#comment119607816_64210041
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".