iOS 中 AirDrop 的替代品

Alternatives To AirDrop in iOS

我无法完全解释为什么我会问这个问题,但我希望开发一个应用程序,在不使用 AirDrop 技术的情况下,将 NSData 从一个应用程序传输到不同设备上的另一个应用程序。

有谁知道实现此目的的任何其他解决方案,或者他们可以指出正确的方向吗?

有一个框架:Multipeer Connectivity 是在 iOS 7 中引入的,根据框架参考介绍,它几乎是开发人员级别的 AirDrop 版本:

The Multipeer Connectivity framework provides support for discovering services provided by nearby iOS devices using infrastructure Wi-Fi networks, peer-to-peer Wi-Fi, and Bluetooth personal area networks and subsequently communicating with those services by sending message-based data, streaming data, and resources (such as files).

WWDC 2013 session that introduced the technology, as well as some Apple sample code 中很好地概述了如何发现附近的设备 运行 您的应用程序并在它们之间传输 NSData,其中显示了一个完整的工作示例。