c# - 多点连接 : iOS and Android

标签 c# android ios xamarin altbeacon

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许提出有关书籍、工具、软件库等建议的问题。您可以编辑问题,以便可以用事实和引用来回答它。


6年前关闭。







Improve this question




我正在与一个跨平台应用程序(Android 和 iOS)的团队合作。
此应用程序旨在使用 beacons 的概念和/或 mesh networkingmultipeer-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 是否需要使用贴纸/估计信标,还是智能手机可以充当信标?
我在找什么:

  • 一种在用户没有 WiFi 或“数据”连接时在 iOS 和 Android 设备之间建立连接的方法。
  • 本质上,每个设备都将充当彼此的“信标”。
  • Xamarin/C# 是必须的(尽管如果它们令人信服,我会听到其他解决方案)
  • 这个场景:

  • 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.cohttp://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/

    相关文章:

    ios - UILabel 上的 CAGradientLayer 无法旋转

    c# - 将字符串与 IEnumerable<string> 连接时会发生什么

    c# - 在 Unity 中读取串口 "COM3"。连接建立成功,但未调用 DataReceived Handler

    android - 在phonegap中提交表单后获取JSON对象

    Android 谷歌分析集成错误

    ios - Swift - 访问 self 以避免将参数传递给函数

    c# - 无法转换类型为 'System.Data.Objects.MaterializedDataRecord' 的对象

    c# - 可以让 UIWebView 内容中的 html 按钮加载新的 ViewController 吗?

    java - 如何根据微调器的选择将纯 TextView 添加到当前布局?

    ios - 使用 SpriteKit 和 UITextView 的 UITextSelectionView 名称无法识别的选择器