Why my app wants to connect to devices on the local network as you can see in the below screenshot? and how can I disable this?
Welcome to our Microsoft Q&A platform!
This alert means that your app has triggered the
Local Network Privacy. Apple adds a privacy setting related to local network usage in iOS 14.0, this alert can't be removed if your app do some operations required local network access. If you want to disable it, I 'm afraid you have to remove all operations about local network. It may not be used in your code, however, it will be used in some third-party tools.
In addition, your app needs to obtain the Privacy - Local Network Usage Description permission from the user to access the user's local network device, the default prompt is displayed as you provided, you could modify the description according to your business requirements. You could Open the
info.plist in your iOS project, and add the following key
For more information, you could refer to
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
8 people are following this question.