【发布时间】:2018-05-17 20:50:25
【问题描述】:
我有一个扫描 iBeacon 的项目,我也学习了这个plugin
我也为此搜索了很多项目,但无法获得预期的结果。
这里有一些我为扫描信标而编写的代码
listenToBeaconEvents() {
this.events.subscribe("didRangeBeaconsInRegion", data => {
// update the UI with the beacon list
this.zone.run(() => {
let json = data.region;
console.log("-------Beacons-------" + JSON.stringify(json));
this.beacons.push({
uuid: JSON.stringify(json.uuid),
identifier: JSON.stringify(json.identifier),
typename: JSON.stringify(json.typeName)
});
});
}
但我的问题是,如果我没有特定信标的 UUID,那么我如何搜索信标?
请帮助我。谢谢。
【问题讨论】:
标签: ionic-framework ionic3 ibeacon