-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About iOS 14 Local Network Privacy #726
Comments
I Have same problem. |
We use this library as part of a Cordova native sockets library for an iOT iPad application. We explored several options for supporting iOS 14 before landing on implementing a bogus Bonjour service query to trigger the local network permission dialog. Once the local network permission is given, the entire app can access networking features as usual, including this library. This is our short-term workaround that let us get a fix for our app into the app store. Longer term, I hope Apple adds an API for managing and requesting this permission. That would allow older libraries like this to still work. Until then, the only other option is to add/move to a newer networking API that supports the permission on iOS 14+. |
This thread on the Apple forum contains extremely helpful information regarding the new Local Network Privacy in iOS 14. It should answer most, if not all of your questions 👍 |
There's a lot of complains in Apple forum about why there's no api to get permission status of localnetwork, but apple developer insists that they will not provide it. I think your long-term plan won't work :( @calrsom I would like to share my workaround:
|
This issue has been marked as stale, it will be closed automatically if there is no further activity. |
AFAIK, at this moment in time the only thing you are required to provide is the NSLocalNetworkUsageDescription description in your Info.plist. Since CocoaAsynSocket using BSD sockets, there is no need (and enforcement of) the However, it is highly encourages to do so, since the expectation is that this will become required with one of the iOS 14.x maintenance updates, see discussion at: https://developer.apple.com/forums/thread/655920. |
Any discussion about this? There's API for URLSession and NWConnection to block the request until user click the allow button, but socket can't handle this. And there's no API to get permission status before the request.
https://developer.apple.com/videos/play/wwdc2020/10110/
https://developer.apple.com/forums/tags/wwdc20-10110
The text was updated successfully, but these errors were encountered: