I'm trying to implement an app with NFC. I have to connect to MIfare tag. I'm notified in tagReaderSection function and the field "tags" contains a tag, but the value of this tag is "[0] = (NFCTag) <invalid> (0x40)"
and im not able to connect to it. In the info file I have add the string:
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>D2760000850101</string>
</array>
What am I doing wrong?? thanks for the support
PS: the NFC chip is Mifare Ultralight version 2 productType Ntag(04)
[Xcode 12.0, IOS 13.0]
Code Block Printing description of ((CoreNFC.NFCTag)<invalid> (0x40)): ▿ NFCTag - miFare : <NFCMiFareTag: 0x283610b40> (lldb)
and im not able to connect to it. In the info file I have add the string:
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>D2760000850101</string>
</array>
Code Block nfcTagReaderSession = NFCTagReaderSession(pollingOption: [.iso14443], delegate: self) nfcTagReaderSession?.begin()
Code Block func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { if case let NFCTag.miFare(tag) = tags.first! { nfcTagReaderSession?.connect(to: tags.first!) {
What am I doing wrong?? thanks for the support
PS: the NFC chip is Mifare Ultralight version 2 productType Ntag(04)
[Xcode 12.0, IOS 13.0]
You cannot send a Mifare Ultralight APDU's, some of the Mifare cards like the desfire are multi standard cards.
If you look to
apple developer documentation
If you look to
apple developer documentation
Use this method to send commands to tags that have a mifareFamily value of either NFCMiFareFamily.plus or NFCMiFareFamily.desfire