android - chariotsolutions phonegap-nfc plugin intent -
i use phonegap-nfc plugin chariotsolutions. reading nfc tag while app running no problem. registered app intents starts when app in background , tag read. ndeflistener not fired. know how tag information when app started intent?
you need add mime type listener nfcevent fired intent when application launches.
you can use same event handler using ndef listener, same except event type. don't need specify mime type.
nfc.addmimetypelistener("", app.onnfc, success, failure);
this bit odd, way works because of how events fired in plugin implementation.
Comments
Post a Comment