Home › Forums › Ask the Flomies › Flomio-MSR (ACR35-A1) & Cordova
Tagged: ACR35, cordova, Flomio-MSR
-
AuthorPosts
-
August 3, 2016 at 7:14 am #56136
Hi,
I use a Flomio-MSR (ACR35-A1) with Cordova und Flomio SDK 2.0, here the code:
var nfcID = “”;
function resultCallback(result)
{
$log.info(‘NFC result: ‘,result);
}
function resultConnectionChange(result)
{
if(result.length>0) {
nfcID = result[0];
}
else nfcID = “”;
$log.info(‘NFC resultConnectionChange: ‘,result, nfcID );
}
function resultTagStatusChange(result)
{
$log.info(‘NFC resultTagStatusChange: ‘,result);
}
function start(){
$log.info(‘NFC init 7:’);
flomioPlugin.init();
flomioPlugin.selectDeviceType(“flojack-msr”);
flomioPlugin.setReaderSettings({scanPeriod:1000, scanSound:true});
flomioPlugin.getReaderSettings(resultCallback);
flomioPlugin.onTagStatusChange(resultTagStatusChange);
flomioPlugin.onTagUidRead(resultCallback);
flomioPlugin.onDeviceConnectionChange(resultConnectionChange);
flomioPlugin.onTagUidRead(resultCallback);
}
setTimeout(function(){ start();},15000);I get the following output.
> NFC init 7:
> NFC result: – {scanPeriod: 1000, scanSound: true}
> NFC resultConnectionChange: [“C9D1915407171424”] “C9D1915407171424”The device is detected but no TAGS found.
I have tried several different TAGS.br Ayhan
August 4, 2016 at 1:10 am #56143Hi Ayhan, what NFC tags are you attempting to read?? Please provide make, model, and manufacturer you purchased from. All these can influence the ability for the FloJack MSR to read the tags.
The FloJack and FloBLE readers mainly support NFC Forum Type 2 and Type 4 tags conforming to the ISO14443 A and B protocols.
best,
RichardAugust 4, 2016 at 6:39 am #56145Hi Richard,
They all ISO 14443-3A NFC Forum Type 2
NFC Disc Tag PVC housing, diameter: 30mm HS-Code: 85235910
NFC Disc Tag PVC housing, diameter: 50mm HS-Code: 85235910
NFC Label PET surface 48 x 42mm, blanco white HS-Code: 85235910br Ayhan
August 4, 2016 at 11:00 am #56149Hi Ayhan, we’re only supporting Mifare Ultralight, UltralightC, and NTAG213 in the NFC Type 2 category. ATRs for other PICC chips are being ignored. I can send you a test application for iOS via TestFlight for you to check to make sure the issue isn’t related to the tags you are using. Please send us your Apple ID email to info at flomio dot com and we can send you a TestFlight invite.
best,
RichardAugust 5, 2016 at 9:56 am #56162Hi,
Would you please give me a test APP with Cordova as link, zip or a different way.
Everything I’ve learned from the Forum, or the plugin page does not work.Thx
August 5, 2016 at 4:37 pm #56166The Test app is included in the Flomio SDK bundle. You can download the latest released bundle here. Follow the instructions in the README.md file to build the Test app yourself in Xcode or Android Studio.
The Flomio Cordova plugin can be downloaded from GitHub here. Another customer discusses how they’ve gotten this to work in their application on this thread. If you have issues with the Cordova plugin, you can post them to the GitHub issues list and we will work to fix them in our next release.
best,
Richard -
AuthorPosts
You must be logged in to reply to this topic.