无法上班ibeacon演示应用程序

时间:2015-05-21 18:29:44

标签: android ibeacon ibeacon-android estimote

我正在尝试使用iBeacons并在我的Android手机上构建了 beacon-finder [1]应用程序[2]。我能够启动应用程序,但是,我无法找到使用iPhone 6S上的estimote应用程序模拟的estimote iBeacon。

知道为什么它不起作用吗?

谢谢。

[1]见https://github.com/evothings/phonegap-estimotebeacons/blob/master/examples/beacon-finder

[2] SONY XPERIA Z1 Compact,Android 4.4.4

2 个答案:

答案 0 :(得分:0)

显然存在一个只会影响iBeacons的错误(根据社区[1])。所以它应该与真正的estimote ibeacons一起使用。

但是,如果您不想修复它,您需要对模拟iBeacon的UUID进行硬编码。为此,请替换

app.startRangingBeacons = function()
{

    // (...)

    // Start ranging.
    estimote.beacons.startRangingBeaconsInRegion(
        {
        }, // Empty region matches all beacons.
        onRange,
        onError);
};

app.startRangingBeacons = function()
{

    // (...)

    // Start ranging.
    estimote.beacons.startRangingBeaconsInRegion(
        {
            "identifier": "MyRegion",
            "uuid": "your-actual-uuid"
        }, // Empty region matches all beacons.
        onRange,
        onError);
};

[1] https://github.com/evothings/phonegap-estimotebeacons/issues/78

答案 1 :(得分:0)

不幸的是,插件使用的Estimote Android SDK不能与虚拟信标一起使用,只能使用物理estimotes。

相关问题