-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display of UID and TagType #16
Comments
UUID is possible by using the array foundTags from the session in NSArray *foundTags = [session valueForKey:@"_foundTags"];
NSObject *tag = foundTags[0];
NSData *uuid = [tag valueForKey:@"_tagID"]; Accessing these is potentially insecure so best to have some verification in place with each valueForKey and accessed array. I don't have enough tags to get all the Tag Types, but there is an enum |
[EDITED] Thank you! That works. The _tagID value agrees with TagInfo and OmniKey Reader (initially I posted it didn't work, sorry) |
I'll add it to the visual example, thanks! |
@hansemannn Here is how I did it for phonegap-nfc: |
The problem is that it looks like a private API and Apple will likely reject apps using that API. So besides the fact that the phonegap-PR might not get merged, I'm not sure if we should expose it as a best practice. Still wondering how the above apps got through review with that - probably obfuscated the call or Apple didn't catch it. |
Hello, |
Apple will in fact reject an app that uses this private api. As for why you can’t read a non-ndef formatted tag, it’s because CoreNFC only detect tags that have properly formatted NDEF data. |
Thank you. Let me find a way to encode it in some other way. |
Hello, |
You can use the NDEF itself to transfer ("Mirror") the UID to the phone.
(i.e. encode https://your.customer.com/some_path/uid/ resp.
https://your.customer.com/some_path?uid=xx..xx).
In case of NTAG 213 and other NXP tags, you can encode even "00..00" for
all tags and let the mirror feature do the job of displaying the actual tag
UID.
Seems that Apple is actively blocking features outside NDEF reading (see
changelogs of some of the reader apps that had it before).,
Regards
erikm
2017-11-02 6:45 GMT+01:00 Swati2707 <notifications@github.com>:
… Hello,
Well my client is getting his tag NDEF encoded with URL. I haven't
received the tags yet. But I have to confirm if i will be able to read the
UID of those tags. As I have noticed NXP app and want to know more about
it. Can anyone help?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAxMcRp0lTZUJ_bjiAAGccgnT35P_NaCks5syVcGgaJpZM4PfDhe>
.
|
Hey. Thank you so much erikm30. |
@erikm30 You can use the NDEF itself to transfer ("Mirror") the UID to the phone. (i.e. encode https://your.customer.com/some_path/uid/ resp. https://your.customer.com/some_path?uid=xx..xx). In case of NTAG 213 and other NXP tags, you can encode even "00..00" for all tags and let the mirror feature do the job of displaying the actual tag UID. Please share some code for mirroring features so i can understand. |
Also the next release of NXP TagInfo has to remove the ID from being
displayed, just like the other apps.
What I was referring to was a feature of the ICs - you can personalize them
in such a way, that the NDEF contains the UID and make use of that.
2017-11-16 5:41 GMT+01:00 kkscwcd <notifications@github.com>:
… @erikm30 <https://github.com/erikm30>
I am trying the same things but getting only payload and ID is always
coming blank in my APP . When i used the NXP from Itunes store it read the
ID . Can you please share the code for this which you mentioned above .
You can use the NDEF itself to transfer ("Mirror") the UID to the phone.
(i.e. encode https://your.customer.com/some_path/uid/ resp.
https://your.customer.com/some_path?uid=xx..xx). In case of NTAG 213 and
other NXP tags, you can encode even "00..00" for all tags and let the
mirror feature do the job of displaying the actual tag UID.
Please share some code for mirroring features so i can understand.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAxMcdiQv-RhasfrDPwj1-ZgnsXGQxZFks5s27z1gaJpZM4PfDhe>
.
|
@erikm30 |
I tested, iOS 11.2 has been removed _tagID data and _UID is changing last 4 bytes every time you read NFC tag, and it's not UID at all (I guess it's encrypted). I didn't find any other private API that relates to uid. |
We did have UID and types in our IOS NFC app but we have noticed since the latest build 11.2 on the iPhone these values are being suppressed. Hopefully one day they will just support it in the API. Our current version of PROX NFC Tag just shows unavailable so will remove on the next version until they appear again. |
Any news with beta of iOS 12? https://developer.apple.com/documentation/corenfc?changes=latest_minor |
Do you mean the availability of the UID? Have not checked as yet, but will do - there does not seem any information regarding it, but that is not always definitive.
Regards, Chris.
Chris Humphries
CEO
ZipNFC
T: +44(0)20 7193 6879 | M: +44(0)7900 300031
ZipNFC.Com <http://zipnfc.com/> Linkedin <http://uk.linkedin.com/in/chrishumphries> Facebook <http://www.facebook.com/zipnfc> YouTube <http://www.youtube.com/zipnfc> Twitter <http://www.twitter.com/zipnfc>
… On 6 Jun 2018, at 11:09, Yann Zahringer Ferrando ***@***.***> wrote:
Any news with beta of iOS 12? https://developer.apple.com/documentation/corenfc?changes=latest_minor <https://developer.apple.com/documentation/corenfc?changes=latest_minor>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#16 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AK9QyMKWhYtkR6ul9PUiQN_5axQIOdfwks5t56pvgaJpZM4PfDhe>.
|
I haven't tried it yet, but I think we'll finally be able to read RFID cards correctly from iOS 13: https://developer.apple.com/documentation/corenfc?changes=latest_minor 🍾 🎉 ISO15693: https://developer.apple.com/documentation/corenfc/nfciso15693tag?changes=latest_minor |
Ah wow. Thank you so much for sharing. Had missed this! Looks like UID and writing will be available !!
Chris.
… On 4 Jun 2019, at 08:01, Yann Zahringer Ferrando ***@***.***> wrote:
I haven't tried it yet, but I think we'll finally be able to read RFID cards correctly from iOS 13: https://developer.apple.com/documentation/corenfc?changes=latest_minor 🍾 🎉
ISO15693: https://developer.apple.com/documentation/corenfc/nfciso15693tag?changes=latest_minor
MiFare: https://developer.apple.com/documentation/corenfc/nfcmifaretag?changes=latest_minor
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This is no longer true with iOS 13! The ability to send APDUs to MIFARE and FeliCa tags (or any tags that conform to ISO 15693 or ISO 7816) means you can manually read data from these tags. Another exciting update is the ability to read Value Added Service (VAS) tags.
There's an |
WWDC 19 Core NFC Enhancements session: https://developer.apple.com/videos/play/wwdc2019/715/ |
How do I read the tag's uid |
Does anyone know how to actually achive this in iOS 13? I see lots of posts and statements from Apple and other commentators thats it's possible but I've not seen any implementation in code. https://stackoverflow.com/questions/57978507/reading-uids-of-nfc-cards-in-ios-13 |
Assuming the tag is a not a NFCFeliCaTag, it is available in the func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) {
if case let NFCTag.miFare(tag) = tags.first! {
print(tag.identifier as NSData)
}
} |
@erikm30 @hansemannn @scottire did any of you happen to try reading the UID from a MIFARE Classic (emulation) tag with iOS13 yet? I was able to confirm the new support for the
|
As per my findings -> Few tags can't be read/detected using 'NFCTagReaderSession', but the TAGs which are readable using NFCTagReaderSession should be able to read and detect UID |
Some apps, namely NFC Tools from wakdev and NFC NDEF READER https://itunes.apple.com/us/app/nfc-ndef-reader/id1286248064?mt=8 manage to show UID and TagType - see screenshots.
Any idea how to access these properties ?
The text was updated successfully, but these errors were encountered: