Problems with connecting to IBeacon

微笑、不失礼 提交于 2019-12-12 01:40:44

问题


I am using the example from here to connect IBeacon. I believe that my UUID is correct. But the Event RegionEntered is never called and e.Beacons.Length in DidRangeBeacons event is always 0.

locationMgr.DidRangeBeacons += (object sender, CLRegionBeaconsRangedEventArgs e) => {
            var a = e.Region;
            if (e.Beacons.Length > 0) {
           //make notification
         }
}

The difference from above mentioned sample is that I use the IBeacon instead of IPad.


回答1:


Check to be sure you know the ProcimityUUID of your beacon by using the Locate app for iOS. You will need to configure the app with your ProximityUUID.

If the app will not detect your beacon, the beacon may be misconfigured or you may not have the proper UUID.

EDIT: I have added instructions for how to scan for your ProximityUUID here.



来源:https://stackoverflow.com/questions/33914654/problems-with-connecting-to-ibeacon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!