Search code examples
iosiphoneswiftnfcios11

NFC Tag Writer sample or tutorial for ios?


I want to write set of NSDictionary data into NFC tag and get when they tap NFC Stickers.

How to write NFC tag data from my iOS app? After searching Google I can't find any reference to write data from my iOS app to NFC tag. Samples given by Google is only for reading NFC tag by iOS11 app. But some of the app in iTunes have option to both read and write NFC tag data. How they did it?

Thanks in advance!


Solution

  • Using iOS 13 (2019) and Newer

    It is now possible to use the CoreNFC framework to write to NFC protocol specific tags such as ISO 7816, ISO 15693, FeliCa™, and MIFARE® tags.

    See Apple's example: https://developer.apple.com/documentation/corenfc/creating_nfc_tags_from_your_iphone

    Using iOS 12 (2018) and Older:

    You cannot write to an NFC tag from iOS, only read. In the Core NFC documentation from Apple it's stated you can only read NFC NDEF tags, and only on iPhone 7 and 7 plus devices (assuming 8 and X are also supported)

    https://developer.apple.com/documentation/corenfc

    On iOS 12 and older, NFC apps from the App Store require you to use an external Bluetooth NFC device.