简体   繁体   English

IOS:访问本地网络

[英]IOS: access to local network

I'am creating an app for IOS.我正在为 IOS 创建一个应用程序。 For this app i need access to the local network.对于这个应用程序,我需要访问本地网络。 Is there a code or something i can add to the info.plist.xml that ask for the permission when my app starts?是否有代码或我可以添加到 info.plist.xml 以在我的应用程序启动时请求许可的内容? it need to aks for permission to access the local network so the app can search for other devices on that network.它需要获得访问本地网络的权限,以便应用程序可以搜索该网络上的其他设备。

If you connect to the local server this message will show up.如果您连接到本地服务器,则会显示此消息。 When I connected to the server where my service is running for the customer, the message will not be shown.当我连接到为客户运行我的服务的服务器时,将不会显示该消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM