Hi
My application uses NFC for various reasons, and I need, at runtime to load up to 4 textural NDEF records onto the Nordic NRF 52832's NFC hardware.
If I wanted a simple text record or a URL record, this is, of course simple, but I use the tag content in an Intent Filter in Android to launch a specific app, and have that app perform a specific function based on the tag content. I am also supporting both iOS and Android pairing via NFC (obviously non-standard as iOS does not do standard NFC pairing). The android intent filter on NFC filters on the record title, not the record content - eg the blemacaddress in the screenshot below.
Please see the tag-scan (from Android NFC Tools app) which shows how I need the data to show up on the tag, and if you know how to achieve this, please shout - I can find no examples beyond text, url, pairing etc. When using the 'Media' type, what follows is the specific MIME-type, that, in my case is the 'ppa/blemacaddress'
My android intent filter in the MainActivity is thus:
[IntentFilter(
new [] {"android.nfc.action.NDEF_DISCOVERED"},
Categories=new[] {Intent.CategoryDefault},
DataMimeType = StaticDefs.Nfc.ProteusFixedIdentUuid,
DataPathPattern = StaticDefs.Nfc.ProteusFixedIdentUuidPayload)] //NB - dont appear to be able to filter on the payload apart from for standard NDEF record like URL.
PS: If this is a terrible way to achieve what I am trying to achieve then I guess I will just do it as a text record!
Nigel