Page 1 of 1

iBeaconDemo Compilation Using Cordova

Posted: 10:37, 28 Oct 2014
by DawletMazen
1- I am following this iBeaconDemo tutorial
http://evothings.com/quick-guide-to-wri ... javascript
2- I got the code from
https://github.com/divineprog/evo-demos ... BeaconDemo
3- Created a new cordova project using
cordova create project-folder app-identifier app-name
4- Added andrid platform using
cordova platform add android
5- Added BLE plugin using
cordova plugin add https://github.com/evothings/cordova-ble
6- Got the values of 'uuid', 'major' and 'minor' from estimote android application for my 3 beacons
7- Built the application using
cordova build android

I then moved and installed the application into my Galaxy S4 but the application can't sense the beacons and displays only the first page, do you know what is wrong?
Thanks

Re: iBeaconDemo Compilation Using Cordova

Posted: 19:09, 28 Oct 2014
by micke
Hi Dawlet,

Looks you got everything in place, but you need cordova-plugin-ibeacon, not the cordova-ble plugin.

Here is the iBeacon plugin with some recent updates:

https://github.com/divineprog/cordova-plugin-ibeacon

One question, does it work to run your app from Evothings Client?

Let me know how it works!

Best regards, Mikael

Re: iBeaconDemo Compilation Using Cordova

Posted: 00:34, 29 Oct 2014
by DawletMazen
Thanks Micke

It worked just fine after adding the correct plugin and it was working fine from Evothings Studio, great work :)

Re: iBeaconDemo Compilation Using Cordova

Posted: 10:33, 29 Oct 2014
by micke
Great, thanks! :)

Re: iBeaconDemo Compilation Using Cordova

Posted: 11:26, 29 Oct 2014
by micke
By the way, did I mention that you can use Evothings Studio with your Cordova app? If you link to the IP-address of the Workbench you can connect from any Cordova app and get the reload-on-save and debug logging features. Here is a description of how to do this:
http://evothings.com/doc/build/cordova- ... rEvothings
Micke :)