使用 cordova 构建和安装 evothings estimote ibeacon 应用程序
Building and installing a evothings estimote ibeacon app using cordova
我正在试验 estimote iBeacons 并在我的 [=26] 上使用 EvothingsWorkbench [2] 试用了他们的 运行 他们的演示应用程序 ibeacon-scan [1] =] 智能手机,有效:我能够监控附近的 ibeacons。
然后,我按照他们的说明 [3]:
尝试使用 cordova 构建一个 android 应用程序
# 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
它是在我的智能手机上构建和安装的,但是,当我启动该应用程序时,它不会向我显示任何 ibeacon。为什么?
[1] http://evothings.com/doc/examples/ibeacon-scan.html
[2] 用于移动设备上 运行 应用程序的桌面应用程序,请参阅 http://evothings.com/doc/studio/workbench.html
事实证明,演示应用程序需要 cordova-plugin-ibeacon 插件 [1].
安装
$ cordova plugin add https://github.com/petermetz/cordova-plugin-ibeacon
我正在试验 estimote iBeacons 并在我的 [=26] 上使用 EvothingsWorkbench [2] 试用了他们的 运行 他们的演示应用程序 ibeacon-scan [1] =] 智能手机,有效:我能够监控附近的 ibeacons。 然后,我按照他们的说明 [3]:
尝试使用 cordova 构建一个 android 应用程序# 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
它是在我的智能手机上构建和安装的,但是,当我启动该应用程序时,它不会向我显示任何 ibeacon。为什么?
[1] http://evothings.com/doc/examples/ibeacon-scan.html
[2] 用于移动设备上 运行 应用程序的桌面应用程序,请参阅 http://evothings.com/doc/studio/workbench.html
事实证明,演示应用程序需要 cordova-plugin-ibeacon 插件 [1].
安装
$ cordova plugin add https://github.com/petermetz/cordova-plugin-ibeacon