Software Archive
Read-only legacy content
17061 Discussions

Beacon

khin_sin_c_
Beginner
1,052 Views

Hi All,

 I have an app built in cordova, which i plan to provide a beacon solution. I wonder is the xdk ready to support the beacon solution? if yes, any beacon vendor or sdk i could refer to?

 

thanks

 

0 Kudos
4 Replies
Chris_P_Intel
Employee
1,052 Views

You mean iBeacon?

There is a third party iBeacon Cordova plugin: https://github.com/petermetz/cordova-plugin-ibeacon

You should be able to use it with the XDK with no problem.  I haven't worked with that plugin myself, nor iBeacon, so cannot advise you as to its ease or difficulty.

Hope this helps,

Chris

0 Kudos
khin_sin_c_
Beginner
1,052 Views

Hi All,

found article about type of beacon technologies in the market:

https://developer.mbed.org/blog/entry/BLE-Beacons-URIBeacon-AltBeacons-iBeacon/

look like if using the cross platform development for marketing message purposes, UriBeacon is better?

http://www.gpsbusinessnews.com/Google-s-UriBeacon-More-Disruptive-than-iBeacon_a5306.html

thanks

0 Kudos
khin_sin_c_
Beginner
1,052 Views

Hi Chris,

i try to monitor an ibeacon using the plugin with id: com.unarin.cordova.beacon.

When i try to do below in my code:

var delegate = new cordova.plugins.locationManager.Delegate();

 

there is always an error of "Uncaught TypeError: Cannot read property 'locationManager' of undefined" show in the log. May i know how could i make a refer to locationManager on the cordova plugin?

thanks

Regards,

Chan KS

 

0 Kudos
PaulF_IntelCorp
Employee
1,052 Views

This looks to me like you do not have the plugin included as part of your app. Are you trying to do this from the Emulate tab? Third-party plugins won't work from there. See these doc pages:

0 Kudos
Reply