wearscript / wearscript-android

JavaScript with Batteries Included for Google Glass
wearscript.com
216 stars 55 forks source link

Issue when trying to listen to iBeacons #235

Open jaredalexander opened 10 years ago

jaredalexander commented 10 years ago

When I try to run the javascript below, I get this error:

10-12 22:22:56.329 17624-17624/? W/ScriptView﹕ Uncaught Error: Error calling method on NPObject. -- From line 1 of

JavaScript code: WS.sensorOn(WS.sensor("ibeacon"), 1000); WS.subscribe('ibeacon', function (channel_name,UUID,powerLevel,majorNum,minorNum) { WS.log("ibeacon found with uuid:" + UUID); });

kurtisnelson commented 10 years ago

Documentation is out of date. See https://github.com/kurtisnelson/wearscript-android/blob/upstream-dev/WearScript/src/main/assets/init.js#L1019

kurtisnelson commented 10 years ago

Updated. Needs closing.