Skip to content

Instantly share code, notes, and snippets.

@equipter
Created April 17, 2023 00:53
Show Gist options
  • Save equipter/88d7a681bd78d45622959861cfcecf2a to your computer and use it in GitHub Desktop.
Save equipter/88d7a681bd78d45622959861cfcecf2a to your computer and use it in GitHub Desktop.
iOS and Mifare Classic interactions. barebones and WIP

Mifare Classic & iOS

Reading

Mifare Classic IC info and block data cannot be read via iOS, This is because Mifare Classics do not conform to the NFC Forum specification for NFC, Therefore only NFC R/W chips made by NXP can communicate with Mifare Classic. The NFC R/W chip in iPhones isnt made by NXP and therefore can't communicate with Mifare Classics.

Writing

Writing to Mifare Classic on iOS is not possible for the reasons mentioned above.

NDEF

iOS may not be able to communicate with Mifare Classics directly but it can interpret NDEF records written to them.

If a Mifare Classic has a compatible NDEF Record written to it (by way of another device), That record can be prompted to the user as usual. This means that iOS can recieve NDEF Messages from Mifare Classic just like any other NDEF Capable NFC Tag.

Automations

Within the iOS App "Shortcuts" there is the option to create automations.

Mifare Classic can be used as an NFC trigger for automations, this doesn't write anything to the Mifare Classic it just tells iOS what to do when it sees the UID of the tag you introduced to the field.