Software Archive
Read-only legacy content

Beacon

khin_sin_c_
Débutant
2 012 Visites

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 Compliments
4 Réponses
Chris_P_Intel
Employé
2 012 Visites

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 Compliments
khin_sin_c_
Débutant
2 012 Visites

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 Compliments
khin_sin_c_
Débutant
2 012 Visites

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 Compliments
PaulF_IntelCorp
Employé
2 012 Visites

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 Compliments
Répondre