iBeacon支持如何在iOS 7.1中真正改变? [英] How is iBeacon support REALLY changed in iOS 7.1?

查看:71
本文介绍了iBeacon支持如何在iOS 7.1中真正改变?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上看到声称新发布的iOS 7.1支持iBeacon.

I've seen claims on the net that the newly released iOS 7.1's iBeacon support.

特别是:

  1. 系统应该仍会通知您的应用有关 即使用户明确地执行didEnterRegion/didExitRegion事件 杀死您的应用.
  2. didEnterRegion/didExitRegion通知是 应该比背景和/或设备更快 锁定.
  1. The system is supposed to still notify your app about didEnterRegion/didExitRegion events, even if the user explicitly kills your app.
  2. didEnterRegion/didExitRegion notifications are supposed to be faster from the background and/or with the device locked.

我无法通过自己的测试来确认这两个声明中的任何一个.实际上,我似乎较少从锁定的设备获取didEnterRegion/didExitRegion通知. (更准确地说,我似乎收到didEnterRegion通知,但未收到didExitRegion通知).那可能是因为Apple让我删除了info.plist中的BLE后台模式条目-我不确定.我仍在尝试解决这个问题.

I have not been able to confirm either of these claims with my own testing. In fact, I seem to be less likely to get didEnterRegion/didExitRegion notifications from a locked device. (more accurately I seem to get didEnterRegion notices, but not didExitRegion notices). That could be because Apple made me remove my BLE background mode entries in my info.plist - I'm not completely sure. I'm still trying to sort this out.

推荐答案

一开始我无法设置测试,但是在杀死iPhone 4s和iPhone 5s机型上的iOS 7.1中的一个应用程序后,我目睹了后台区域条目回调.有关测试的详细信息和复制说明,请参见下面的评论.

I had trouble setting up my tests at first, but I have witnessed background region entry callbacks after killing an app in iOS 7.1 on both iPhone 4s and iPhone 5s models. See comments below for testing details and instructions to reproduce.

我还对iPhone 4S的背景检测时间进行了测试,但在iOS 7.1上仍然看到15分钟的延迟. 这里描述了我的完整测试结果和方法.

I have also done tests on background detection times on an iPhone 4S, and I still see delays of 15 minutes on iOS 7.1. My full test results and methodology are described here.

最后,我还对升级到iOS 7.1之前和之后在同一设备上的准确性"(以米为单位)测量的波动做了一些测试.我看不出估算的噪声有明显的差异.下图显示了升级前后的结果,iBeacon处于0.5米外的地方持续60秒,然后移动到3米外的地方持续60秒.在这两种情况下,发射器都是经过正确校准的带iOS 7.1的iPhone 4S,接收器是iPhone 5S.

Finally, I have also done some tests on the fluctuations on the "accuracy" (distance in meters) measurement on the same device before and after the upgrade to iOS 7.1. I do not see an obvious difference in the noise on the estimate. The graphs below show results before and after the upgrade, with an iBeacon 0.5 meters away for 60 seconds then moved to 3 meters away for 60 seconds. In both cases, the transmitter was a properly calibrated iPhone 4S w/ iOS 7.1 and the receiver was an iPhone 5S.

iOS 7.0.6估计距离

iOS 7.0.6 Estimated distance

iOS 7.1估计距离

iOS 7.1 Estimated distance

这篇关于iBeacon支持如何在iOS 7.1中真正改变?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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