wearscript / wearscript-android

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

Issue when trying to listen to iBeacons #235

Open jaredalexander opened 9 years ago

jaredalexander commented 9 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 9 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 9 years ago

Updated. Needs closing.