本文介绍了iBeacon 支持 Windows Phone 设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iBeacon 在 Windows Phone 设备中 -:我们需要开发一个类似于 iOS 应用程序的具有 iBeacon 支持的 Windows Phone 应用程序.我们没有找到任何有用的信息.任何人都可以就如何在 Windows Phone 设备上实施 iBeacon?"

iBeacon in Windows Phone devices -: We need to develop a windows phone application with iBeacon support similar to iOS applications. We didn't find any useful informations on this. Can anyone suggest a better solution on "How to implement iBeacon on Windows Phone Devices?"

推荐答案

不幸的是,我已与 Microsoft 工程师确认 从 Windows Phone 8.1 开始这是不可能的.

Unfortunately, I have confirmed with Microsoft engineers that this is not possible as of Windows Phone 8.1.

虽然此操作系统版本确实引入了蓝牙 LE 支持,但 API 不允许扫描 iBeacons,因为扫描功能已锁定到操作系统.不允许第三方应用程序执行寻找信标所需的扫描.操作系统本身没有扫描 iBeacon 的功能,只能扫描可连接的低功耗蓝牙设备并与之配对.

While this operating system version did introduce Bluetooth LE support, the APIs do not allow scanning for iBeacons because scanning functions are locked down to the operating system. Thitrd party apps are not allowed to perform scans which would be needed to look for beacons. The OS itself has no functionality to scan for iBeacons, only the ability to scan for connectable Bluetooth LE devices and pair with them.

第三方应用可以像这样查找实现已知 GATT 配置文件的设备:

Third party apps can look for devices implementing known GATT profiles like so:

var themometerServices = await Windows.Devices.Enumeration .DeviceInformation.FindAllAsync(GattDeviceService .GetDeviceSelectorFromUuid( GattServiceUuids.HealthThermometer), null);

但是 iBeacon 不会宣传 GATT 服务,因此这无济于事.需要的是对定位信标的本地支持或对原始扫描结果的第三方访问,这是解码信标标识符所必需的.

But iBeacons do not advertise GATT services, so this won't help. What is needed is either native support for locating beacons or third party access to raw scan results, which is needed to decode beacon identifiers.

Microsoft 预计将在其即将发布的 Windows 10 版本中扩展对蓝牙 LE 的支持,该版本将具有统一的桌面/移动代码库.可能会包含必要的功能.此操作系统要到 2015 年末才会发布,并且要到 2015 年初才能提供预览 API,这是我们确认此类支持即将到来的最快时间.由于公司在此版本中投入了大量精力,因此在此期间不太可能在 Windows Phone 8.x 中添加任何新功能.

Microsoft is expected to expand support for Bluetooth LE in their upcoming Windows 10 release, which will have a unified desktop/mobile codebase. It is possible the necessary functionality will be included. This OS will not be released until late 2015 and no preview APIs will be available until early 2015, which is the soonest we may have confirmation that such support is coming. Because the company is putting so much energy into this release, it is unlikely there will be any new functionality added to Windows Phone 8.x in the meantime.

这篇关于iBeacon 支持 Windows Phone 设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 17:08