问HN:在iOS上如何在没有服务器的情况下处理点对点发现?
我正在开发一款应用,可以在没有手机信号的情况下通过蓝牙在手机之间同步。Android有Nearby Connections API,可以很好地处理设备发现和数据传输。iOS则有Multipeer Connectivity,但它不太稳定,而且苹果已经多年没有更新它。CoreBluetooth可以使用,但设备发现速度较慢,并且广告数据限制在28字节。有没有人找到一种可靠的跨平台BLE设备发现方法,不需要中央服务器或预共享标识符?
查看原文
I'm building an app that syncs between phones over Bluetooth when there's no cell service. Android has Nearby Connections API which handles discovery and transport nicely. iOS has Multipeer Connectivity but it's flaky and Apple hasn't updated it in years. CoreBluetooth works but discovery is slow and you're limited to advertising 28 bytes. Has anyone found a reliable cross-platform approach to BLE device discovery that doesn't require a central server or pre-shared identifiers?