简体   繁体   中英

How to scan ibeacons using cordova-plugin-ibeacon?

I am using petermetz/cordova-plugin-ibeacon in my hybrid application, plan to deploy it on Android devices only.

I have seen application that detect beacons placed nearby, and i want to achieve same functionality but using cordova plugin in my hybrid app.

Can some one help in detecting ibeacons present nearby with their details like their UUID as the sample given doesn't explains much about scanning.

Thanks, Rohit

Simply follow the example on the README of the page linked in the question for "Start ranging a single iBeacon", and replace the major and minor field values with null. This will scan for all beacons with the UUID specified.

It is not possible to use the plugin to scan for all beacons regardless of UUID because iOS does not allow this.

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