【问题标题】:How to scan iBeacon in ionic 3?如何在 ionic 3 中扫描 iBeacon?
【发布时间】: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


    【解决方案1】:

    在 iOS 上,您无法找到没有特定 UUID 的信标——该平台根本不允许您这样做。 Android没有这样的限制。

    查看这个相关问题以获得更详细的解释:

    iOS iBeacon: How to get all of proximityUUID programmatically?

    【讨论】:

    • 感谢您的回复,但我的问题是我如何(务实地)找到附近的信标?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-07
    • 1970-01-01
    • 1970-01-01
    • 2015-12-01
    • 2015-06-24
    • 2014-08-06
    相关资源
    最近更新 更多