iBeacon:更快获得广告套餐 [英] iBeacon: Get advertisement package faster

查看:116
本文介绍了iBeacon:更快获得广告套餐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我通过CoreLocation和LocationManager获得了信标的信息. 我已将信标的广告间隔设置为200ms. 是否可以更快地调用didRangeBeacons委托方法,以便我根据信标的广告间隔获取广告包的值?

In my app I get the information of the beacons with CoreLocation and and the LocationManager. I've set the advertising interval of the beacons to 200ms. Is it possible to call the didRangeBeacons delegate method faster, so that i get the values of the advertising package according to the advertising interval of the beacon?

推荐答案

不,您不能更改didRangeBeacons:inRegion回调的频率,无论信标广告频率如何,该频率均为1 Hz.

No, you cannot alter the frequency of the didRangeBeacons:inRegion callback, which is 1 Hz regardless of the beacon advertising frequency.

您可以使用CoreBluetooth API 获取每个信标广告的回调(在您的情况下为每200毫秒),但是有两个限制:

You can get callbacks for each beacon advertisement (every 200 ms in your case) using CoreBluetooth APIs, but there are a couple of restrictions:

  1. 它不适用于iBeacon传输,因为 iOS禁止访问CoreBluetooth中的iBeacon广告数据.您可以使用与iBeacon兼容的 AltBeacons ,并通过这些更新获得更频繁的更新.您可以购买同时发送iBeacon和AltBeacon传输的信标.

  1. It will not work with iBeacon transmissions as iOS blocks access to iBeacon advertisement data in CoreBluetooth. You can use AltBeacons, which are iBeacon compatible, and get the more frequent updates with those. You can buy beacons that send out both iBeacon and AltBeacon transmissions.

它将仅在前台工作.您无法在iOS的后台中获取Bluetooth LE制造商的广告.

It will only work in the foreground. You cannot get Bluetooth LE manufacturer advertisements in the background on iOS.

完全公开:我是Radius Networks的首席工程师,该公司是开源AltBeacon标准的赞助商.

Full disclosure: I am Chief Engineer at Radius Networks which sponsors the open source AltBeacon standard.

这篇关于iBeacon:更快获得广告套餐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆