的LocationManager:rangingBeaconsDidFailForRegion:withError:kCLErrorDomain 16 [英] locationManager:rangingBeaconsDidFailForRegion:withError: kCLErrorDomain 16

查看:209
本文介绍了的LocationManager:rangingBeaconsDidFailForRegion:withError:kCLErrorDomain 16的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读<一个href=\"http://stackoverflow.com/questions/20164952/cllocationmanager-kclerrordomain-$c$cs\">CLLocationManager kCLErrorDomain codeS?与<一个href=\"https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManagerDelegate_Protocol/CLLocationManagerDelegate/CLLocationManagerDelegate.html#//apple_ref/occ/intfm/CLLocationManagerDelegate/locationManager%3arangingBeaconsDidFailForRegion%3awithError%3a\">Apple文档

我检查,以确保测距调用startRangingBeaconsInRegion前可用:和我也检查,如果范围可同时在的LocationManager:rangingBeaconsDidFailForRegion:withError:方法。返回true两次。

I check to make sure ranging is available before calling startRangingBeaconsInRegion: and I am also checking if ranging is available while in the locationManager:rangingBeaconsDidFailForRegion:withError: method. Returns true both times.

当我得到一套monitoredRegions,我的灯塔是集合(所以报考监测工作)。

When I get the set of monitoredRegions, my beacon is in the set (so registering for monitoring is working).

我已阅读,错误16意味着测距不可用,蓝牙可以了,位置服务可以关闭,飞行模式可能是,我已经检查所有这些,都是可用且正在运行(显然不是在飞行模式下)

I have read that error 16 can mean ranging is unavailable, bluetooth could be off, location services could be off, airplane mode could be on, I have checked them all and all are available and running (obviously not in airplane mode).

这可能是造成测距失败,我每次运行应用程序时?

What could be causing the ranging to fail, every time I run the app?

推荐答案

只是为了消除任何可能性,它可能是一些在code,尝试像我的找到了iBeacon显示。如果还不能正常工作,你可能有一个操作系统或硬件问题。

Just to eliminate any possibility that it could be something in your code, try a reference app like my Locate for iBeacon. If it also does not work, you probably have an OS or hardware problem.

要解决此问题,首先重新启动您的手机,然后再试一次。然后尝试配对到正规的蓝牙设备(耳机,苹果等)。如果定期蓝牙配对的工作原理,它可以是蓝牙LE问题。

To troubleshoot this, first reboot your phone and try again. Then try pairing to a regular Bluetooth device (headphones, Mac, etc). If regular Bluetooth pairing works, it may be a Bluetooth LE issue.

您的iOS设备必须是一个iPhone 4S +或一个iPad 3+(需要BLE)。

Your iOS device must be either an iPhone 4s+ or an iPad 3+ (needed for BLE).

这篇关于的LocationManager:rangingBeaconsDidFailForRegion:withError:kCLErrorDomain 16的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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