菜鸟教程小白 发表于 2022-12-12 18:29:22

iphone - 查找附近的 iOS 设备


                                            <p><p>我想知道是否可以使用 iOS 设备之间的信号强度来确定更接近的设备并以这种方式列出它们?
通过信号强度,我们正在查看蓝牙、wifi 或蜂窝网络。基本上,最终目标是让用户最近的 3 台设备。
可能吗?如果是,有人可以通过一些引用/文档链接(如果有的话)指出我使用哪种技术的正确方向。</p>

<p>提前致谢</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>GameKit 框架提供了通过蓝牙与附近的 iOS 设备通信的功能。不幸的是,调解设备之间连接的 <code>GKSession</code> 类没有公开任何与信号强度相关的属性。如果此功能有用,我建议向 Apple 提交错误报告以请求此功能。</p>

<p> <a href="http://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKitConcepts/GameKitConcepts.html#//apple_ref/doc/uid/TP40008304-CH100-SW1" rel="noreferrer noopener nofollow">GameKit Programming Guide - Peer to Peer Connections</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于iphone - 查找附近的 iOS 设备,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/8424305/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/8424305/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iphone - 查找附近的 iOS 设备