NFC in farmOS Field Kit

Yea! I believe this is all controlled with Mime types (think like a content-type header in HTTP) - one such Mime type specifies an Android Application Record. Just saw this documented on the phonegap-nfc library here

val msg = NdefMessage(
        arrayOf(
                ...,
                NdefRecord.createApplicationRecord("com.example.android.beam")
        )
)

Then by modifying AndroidManifest.yml I think we can enable launching-your-android-application-when-scanning-a-tag

Yea - especially with long-term “things”. They can really provide an alternative method of inputting data to the phone, even. Rather than typing a value, you can have NFC tags nailed to the wall that you tap. I think this would make sense for certain repetitive workflows where typing slows things down. (Seeding in trays comes to mind)

1 Like