iBeaconGap Cordova插件基于RadiusNetwork Android库

man*_*anu 5 android bluetooth-lowenergy ibeacon-android cordova-plugins android-ibeacon

我正在尝试使用以下iBeaconGap cordova插件,它是RadiusNetworks Android iBeacons库的包装器.我的手机已准备好LE蓝牙,并通过Play商店的RadiusNetwork Detector应用程序检测我的信标.

但是将它添加到我的普通cordova项目会导致以下日志消息:"尝试通过intent回调:ComponentInfo {com.tecalliance.lucidbeacon/com.radiusnetworks.ibeacon.IBeaconIntentProcessor}".看起来它的起源是RadiusNetworks 的Callback.java类.

插件安装程序已正确更新AndroidManifest.xml文件:

<service android:enabled="true" android:exported="true" 
         android:name="com.radiusnetworks.ibeacon.IBeaconIntentProcessor">

         <meta-data android:name="background" android:value="true" />
         <intent-filter android:priority="1">
            <action android:name="com.thinketg.plugin.ibeacongap.DID_RANGING" />
            <action android:name="com.thinketg.plugin.ibeacongap.DID_MONITORING" />
         </intent-filter>
</service>

<service android:enabled="true" android:exported="true" 
         android:isolatedProcess="false" android:label="iBeacon" 
         android:name="com.radiusnetworks.ibeacon.service.IBeaconService" />

<service android:enabled="true"   
         android:name="com.radiusnetworks.ibeacon.IBeaconIntentProcessor">

         <meta-data android:name="background" android:value="true" />
         <intent-filter android:priority="1">
            <action android:name="com.thinketg.plugin.ibeacongap.DID_RANGING" />
            <action android:name="com.thinketg.plugin.ibeacongap.DID_MONITORING" />
         </intent-filter>
</service>
Run Code Online (Sandbox Code Playgroud)

<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Run Code Online (Sandbox Code Playgroud)

我使用github上建议的插件,但是getBeacons()和failedGettingBeacons()都没有被调用.

function startBeaconScans() {
    iBeaconGap.getBeacons(gotBeacons, failedGettingBeacons);
}
Run Code Online (Sandbox Code Playgroud)

不知道怎么解决这个问题?提前致谢 ;-)