android - 我们如何在 iOS 应用程序中将 android 设备检测为信标

标签 android ios ibeacon altbeacon beacon

我使用 Altbeacon api 制作了一个安卓设备作为信标发射器。 我想使用 ios 应用程序使用 iBeacon 或 Altbeacon Api 代码扫描该信标。但是我找不到那个灯塔。请帮助解决问题。

谢谢。

最佳答案

在 iOS 上检测 Android 信标发射器的方式取决于您在传输中使用的信标格式。 Android Beacon 库支持传输这些格式:

  1. iBeacon
  2. AltBeacon
  3. Eddystone-UID、Eddystone-URL 和 Eddystone-EID

只有上述三种格式中的第一种可以通过其内置的 CoreLocation API 在 iOS 上检测到。此工具包可以检测到其他三个:https://github.com/AltBeacon/ios-beacon-tools或通过 Google 的信标 SDK。

您可以尝试使用 Beacon Locate app让 iOS 检测您的 Android 发射器,因为它在幕后使用 CoreLocation 和 iOS Beacon Tools。如果这可行,您应该也能使您的代码正常工作。

关于android - 我们如何在 iOS 应用程序中将 android 设备检测为信标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39695931/

相关文章:

c# - Visual Studio 2017 Info.plist 在选项卡更改后丢失分发目标

swift - BLE 在蓝牙设备附近执行功能

iOS - iBeacon - 在 iOS 7.1 更新后在后台作为信标进行广告(广播)

android - 在 ScrollView 中隐藏滚动条

android opengles 将图像显示为纹理

android - Android 中的错误 -- 无法找到 : ComponentInfo 的检测信息

ios - Cordova iOS项目缺少cordova.js

ios - 使用 MBCalendarKit 创建事件时出现问题

ios - 在 iOS 中获取信标的唯一标识符?

android - 无法联系 Google map 服务器