简体   繁体   中英

iOS - how to detect all beacons around without using UUID

I am working on iBeacons. Trying to find out all beacons around me.

Like Android, in iOS, we cannot achieve this without specifing "UUID" while searching. By using UUID, it is working fine.

is there any better solution to search all beacons around you, without specifying UUID?

I found one solution RNLBeaconScanner , which is in objective c . RNLBeaconScanner detecting beacons in ObjC but same beacons not detecting in swift .

Thanks in advance!

TLDR; You can't.

Longer answer: If you specifically are working with iBeacons, you NEED to know their UUID s, to pass a valid CLBeaconIdentityConstraint to startRangingBeacons method of CLLocationManager .

Core Bluetooth , which can be used for general BLE scanning, unfortunately cannot be used to detect iBeacons , because, well, apple doesn't want you to .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM