Closed gerbil closed 9 years ago
Hi,
Did your device support nfc ? Does the scanned tag work on other devices ?
Basically this ngCordova plugin is just wrapping the basic functionality.
addTagDiscoveredListener: function(callback)
{
var q = $q.defer();
if(typeof nfc != "undefined")
{
nfc.addTagDiscoveredListener(callback, q.resolve, q.reject);
}else
q.reject("nfc plugin not defined");
return q.promise;
},
So if it does not work, it does not fail here. Maybe check the cordova nfc plugin repository.
I got Ionic + ngCordova project. So i can't see anything except 'ready' and 'ok' alerts..
My app.js:
My index.html: