Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
301 views
in Technique[技术] by (71.8m points)

c# - iBeacon support for Windows Phone devices

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?"

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

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.

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); 

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 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...