关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。
我们不允许提出有关书籍、工具、软件库等建议的问题。您可以编辑问题,以便可以用事实和引用来回答它。
6年前关闭。
Improve this question
我正在与一个跨平台应用程序(Android 和 iOS)的团队合作。
此应用程序旨在使用 beacons
的概念和/或 mesh networking
或 multipeer-connectivity
.目前,我们的团队正在使用 Xamarin 作为我们的 IDE 来创建单个代码库。
经过大量研究(显然不够重要),我只能找到以下资源..
http://altbeacon.org/
http://altbeacon.github.io/android-beacon-library
https://github.com/octoblu/meshblu
https://github.com/octoblu/MeshbluKit-iOS
https://github.com/octoblu/MeshbluKit-Android
https://github.com/CharruaLab/AltBeacon
https://blog.xamarin.com/play-find-the-monkey-with-ios-7-ibeacons/
几个问题:
AltBeacon 是否允许平台之间的通信?
是否有在 Xamarin/C# 中建立 Multipeer/Mesh 网络的内置方法?
Estimote 是否需要使用贴纸/估计信标,还是智能手机可以充当信标?
我在找什么:
Two individuals walk pass one another. Both have the app running on their phones. One individual has an iphone and the other has an android. Their apps are running in the background (their phones are in their pockets or hands and are locked.. meaning not in "use"). As the individuals walk past each other their phones detect one another and send/receive text from one another
在此事件发生之前,用户 1 使用该应用程序保存包含以下信息的注释...
"Water fountain working properly"
而用户 2 使用他们设备上的应用程序保存包含以下信息的注释...
"Hand rail slightly damaged"
在用户互相通过之后,下次他们打开他们的应用程序时,他们应该会看到一个更新的笔记阅读......
"Water fountain working properly
Hand rail slightly damaged"
可能的解决方案:待定
被拒绝的解决方案:待定
--
当前结论:
当前存在诸如 FireChat、ViewRanger(我相信)或 Xamarin 示例“Find the Monkey”之类的应用程序。 Apple 在他们的商店中使用 iBeacon,而其他人则在 Android 设备上使用 AltBeacon。我得出的结论是,这肯定是可能的,但我正在寻找如何最好地执行它,同时让两个平台作为彼此的信标。
最佳答案
根据您对场景的描述,可以将其分解为两个简单的步骤:
必需:这应该适用于 x 平台 iOS 和 Android
我相信解决这个问题的最好方法是使用 BLE,这两个平台都支持(有些平台比其他平台好)。
在 iOS 上,设备可以同时充当 BLE Central 和 BLE Peripheral,而在 Android 上,情况更为复杂,因为并非所有设备都支持 BLE Peripheral 状态。 Android BLE 堆栈也非常不稳定。
如果您的用例是功能驱动的,我建议您查看可以为您实现这一目标的框架和库,而无需从头开始构建它。
例如:
http://www.p2pkit.io , http://www.intromi.co和 http://www.underdark.io或附近的谷歌
关于在 Xamarin 中使用 native 代码,您可以简单地创建一个桥(绑定(bind):https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/)。
免责声明:我在 Uepaa 工作,为 Android 和 iOS 开发 p2pkit.io。
关于c# - 多点连接 : iOS and Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36366012/