问题描述
iBeacon -:我们需要开发具有iBeacon支持的Windows Phone应用程序,类似于iOS应用程序。我们没有找到任何有用的信息。谁能在 如何在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,因为扫描功能已锁定在操作系统上。第三方应用程序不允许执行查找信标所需的扫描。操作系统本身没有扫描iBeacons的功能,只有扫描可连接的蓝牙LE设备并与之配对的功能。
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);
但是iBeacons不会宣传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.
微软有望扩展在即将推出的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设备的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!