Hi all, recently i am working on a project and i faced some problems. I am currently using lightblue bean, an i beacon. I programed it using evothings. I want to compile it to become a native app using phonegap. i found the evothings ble plugin but it did not seem to detect any ibeacon when i used the app. I have been stuck at this point for weeks. Your help will be appreciated! This is my code:
<?xml version="1.0" encoding="UTF-8"?>
<plugin name="com.evothings.ble" spec="1.0.0" source="pgb" >
<name>BLE API</name>
<description>BLE </description>
<license>Apache 2.0</license>
<keywords>cordova,device</keywords>
<js-module src="ble.js" name="BLE">
<clobbers target="evothings.ble" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BLE">
<param name="android-package" value="com.evothings.BLE"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!-- <uses-sdk tools:overrideLibrary="org.apache.cordova,com.library.plugin"/>-->
<uses-permission android="android.permission.BLUETOOTH"/>
<uses-permission android="android.permission.BLUETOOTH_ADMIN"/>
</config-file>
<source-file src="src/android/BLE.java" target-dir="src/com/evothings" />
</platform>
<platform name="android">
<config-file target="config.xml" parent="/*">
<feature name="BLE">
<param name="android-package" value="EVOBLE"/>
</feature>
</config-file>
<framework src="CoreBluetooth.framework" />
<header-file src="src/ios/EVOBLE.h" />
<source-file src="src/ios/EVOBLE.m" />
</platform>
</plugin>