I'm experimenting with estimote iBeacons and tried their running their demo app ibeacon-scan [1] using the EvothingsWorkbench [2] on my android smartphone, which worked: I was able to monitor the ibeacons located nearby. Then, I tried building an android app with cordova by following their instructions [3]:
# create cordova project
$ cordova create monitr com.evothings.monitr monitr
# (remove all www files & copy demo app files into www dir)
# configure platforms to deploy to
$ cordova platform add android
# build android app
$ cordova build android
# install android app on smartphone
$ adb install -r platforms/android/build/outputs/apk/android-debug.apk
It was built and installed on my smartphone, however, when I start the app, it won't show me any ibeacon. Why?
[1] http://evothings.com/doc/examples/ibeacon-scan.html
[2]用于在移动设备上运行应用的桌面应用,请参阅http://evothings.com/doc/studio/workbench.html
答案 0 :(得分:0)
原来,演示应用程序需要 cordova-plugin-ibeacon 插件[1]。
<强>安装强>
$ cordova plugin add https://github.com/petermetz/cordova-plugin-ibeacon