Odd behavior while testing NFC plug-ins

In an attempt to build an NSB app with NFC support, I’ve been trying out NFC plug-ins I find on the ‘approved’ list at Approved Plugins | VoltBuilder

To do this, I create a new clean project with nothing in it but the first form that it comes with. Then I add the plug-in name to the config.xml and then see if Voltbuilder will build with it. When I first started I tried “chariotsolutions” nfc plugin I found online. It failed and it presented as such in the Voltbuilder log. No problem there, just found a bad one.

I reset, generated a completely new project and went again. This time with the plug-in called “community-cordova-plugin-nfc”.

Heres where it gets weird, its an approved plug-in and it looks like it compiles in the log, but near the end, the same errors for the previously tested “chariotsolutions” nfc plug-in appear and indicate a build failure. These are different, clean built project files that don’t share folders, newly generated log files, but somehow “chariotsolutions” is still appearing in my Voltbuilder logs and also appears to be the reason the build fails.

I’m at a loss as to how to remedy this or even why its happening.
Anyone have anything ideas on this?

Can you share your log and your config.xml?

Sure,
NFC_test.zip (6.2 KB)

I could share the whole project if you like. Its just a bone stock New Project with the NFC plug-in pasted into the config.xml.

Be warned, I tend to miss obvious problems as well as obscure ones.

Taking a look at the source for the plugin you have referenced (community-cordova-plugin-nfc), it seems to have been forked from chariotsolutions - that’s why you are seeing the references: community-cordova-plugin-nfc/src/android/src/com/chariotsolutions/nfc/plugin at master · EYALIN/community-cordova-plugin-nfc · GitHub

Looking at the failures, it appears the methods used by this plugin are deprecated and have been removed from recent versions of Android.

Good to know, that makes sense. Do you guys know of any NFC plug-ins that aren’t using deprecated APIs? That’s really what I’m after. If not, I can continue on with the one-by-one testing.
Thank you!

Unfortunately I’m not aware of any personally, but I’m certain they exist. If you continue to have issues we can discuss the possibility of updating one.

Correct me if I’m wrong, but unless I find a working npm plugin, AppStudio effectively has no other way to access NFC tags? or is there something obvious I’ve missed?

I don’t believe there’s any built in browser API, so unfortunately no.

Depending on your need, you can contact our support@appstudio.dev directly and we can discuss what it would take to update an existing one.