This is my first foray into Meteor+Cordova. I’m hoping there’s something obvious that I’m missing.
I added the nielsAD/cordova-wifiscanner plugin like so:
meteor add cordova:nl.nielsad.cordova.wifiscanner@https://github.com/nielsAD/cordova-wifiscanner/tarball/cae9275c9ae83617b16389b4343c9a7a0a5ddd51
and it seems to have been successful. The plugin shows up as being installed.
However, when I attempt to use it like so:
onSuccess = function(result) {
Session.set('result', result);
};
onError = function() {
alert('Error!');
};
options = {frequency: 3000};
watchID = navigator.wifi.watchAccessPoints(onSuccess, onError, options);
launching it with meteor run android
, the application comes up on the emulator but I get the error Uncaught TypeError: Cannot call method 'watchAccessPoints' of undefined
Am I just missing something obvious? Or is it tricky to get a plugin like this working in Meteor?