Core NFC

RSS for tag

Detect NFC tags, read messages that contain NDEF data, and save data to writable tags using Core NFC.

Core NFC Documentation

Posts under Core NFC tag

59 Posts
Sort by:
Post not yet marked as solved
12 Replies
26k Views
I'm trying to transfer data from one device to another using NFC. I'm trying to figure out if this is possible, I downloaded apple's sample project about CoreNFC, I was able to read NFC Tags (it wasn't a real NFC Tag, rather it was an NFC Tag emulated with an android device). Can I use my iPhone to emulate an NFC Tag to transfer data to another iPhone or Android device?
Posted
by
Post not yet marked as solved
56 Replies
46k Views
Dear Community / Apple, I would like to ask in the name of many Smart Home Community, There is any developing / There is any future plan about make Apple Watches able to read NFC Tags / Stickers? Many of us would like to use Apple Watch to use Home Automations with NFC Stickers, but we have to use our iPhone instead of the Watch, what would be the most logical way to use these things. We does not really understand why this was not added by default, and why we cannot find any official information about this? Please provide us some answer, at least we should know should we still wait for this feature or this is not gonna be enabled by Apple?! Thank you very much, Gery
Posted
by
Post not yet marked as solved
30 Replies
72k Views
G'day. At my office the doors are locked with an NFC reader. We carry around a little NFC tag on our key chains which will read out a number and this then will open the door if the number matches a number in the database. I am tired of carrying around the tag, people keep loosing it, forgetting it and it would be nice to open the door using a Phone - which we tend to always have on us. So I used a credit card which is NFC enabled to readout the NFC information, added this number to the database and can now open doors using my credit card. This is pretty cool. If I forget my keys (most likely they will be on the desk but silly me left the desk without them), I may have my wallet with me. Then I tried Wallet.app on my iPhone and select the same credit card. However the door doesn't open. When looking in the door software I noticed that the tags will always transmit the same number. So does my credit card. However Wallet.app will read out 4 readings (or maybe just one very long one) and they are always different. So I can not make them match with the door database. Any ideas how to make this work? Can I give somehow wallet.app an NFC number which I can then add to my door database? Or how come the credit card and the very same one in wallet.app don't match? Thanks for your help! Would be neat if I could make this work out. This will make a lot of people happy at my office! Cheers!
Posted
by
Post not yet marked as solved
30 Replies
26k Views
I'm very excited about the new AirTag product and am wondering if there will be any new APIs introduced in iOS 14.5+ to allow developers to build apps around them outside the context of the Find My network? The contexts in which I am most excited about using AirTags are: Gaming Health / Fitness-focused apps Accessibility features Musical and other creative interactions within apps I haven't been able to find any mention of APIs. Thanks in advance for any information that is shared here. Alexander
Posted
by
Post not yet marked as solved
34 Replies
35k Views
After updating to iOS 15.4 I can no longer read any NFC tags. I believe Apple Pay is working fine. Replication: Unlock iPhone, hold NFC tag to top back of phone (without case or other magnetic or metallic materials nearby). Default iOS behaviour should be to read the contents of a known working tag (works perfectly on an Android device) and display a popup to manage the tag information (e.g. Popup would ask permission to open Safari to open a web link programmed on a tag) 3rd Party Tools: Previous versions of iOS 15 beta allowed read and write of NFC tags using apps such as NFC and NFC Tools. I have used "normal" mode, compatibility mode, have attempted to (re)format the tag to no avail. When conducting a read or write using these tools a popup appears, but no tag can be read or written. "Ready to Scan" popup remains open. Further steps taken: Hard Reset: No effect
Posted
by
Post not yet marked as solved
1 Replies
1.3k Views
Why is there no public APIs for developers (PassKit) to implement Apple Wallet NFC for employee badges as announced in WWDC 2021 Keynote? Can a simple Apple platforms developer implement this for the organization they are working on and don't have to go to third-party providers which seem to have this capability? Seems that I need to reach out to the below companies to enable this in the current organization I'm working with: third party providers: https://swiftconnect.io/owners/ https://www.hidglobal.com/solutions/access-control/hid-mobile-access-solutions
Posted
by
Post not yet marked as solved
2 Replies
2.9k Views
Guys, I need your help, please. What do I need: to get the tag's UID (i.e Serial number) using iOS app What do I have: I have an app Flutter, which works fine on Android (I can read the tag's UID) and do nothing on iOS The card's details (plastic card): Tag type: ISO 14443-3A Technologies available: NfcA, MifareClassic, Ndef Serial number: AB:BF:88:AE (this is i really need to get from the app) Saved message on the tag: "My text with spaces" On iOS side I created two implementations: one for NFCTagReaderSession, another one for NFCNDEFReaderSession (I do not use it at the same time, only separated) NFCTagReaderSession import UIKit import Flutter import CoreNFC @available(iOS 13.0, *) var session_tag: NFCTagReaderSession? @available(iOS 13.0, *) var flutterResult: FlutterResult! @available(iOS 13.0, *) @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate, NFCTagReaderSessionDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { let controller : FlutterViewController = window?.rootViewController as! FlutterViewController let nfcChannel = FlutterMethodChannel(name: "samples.flutter.dev/nfc", binaryMessenger: controller.binaryMessenger) nfcChannel.setMethodCallHandler({ [weak self] (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in // Note: this method is invoked on the UI thread. guard call.method == "getNFCTag" else { result(FlutterMethodNotImplemented) return } if NFCTagReaderSession.readingAvailable { print("we are ready for reading"); self?.startReadingNFC(result: result) } else { print("sorry byt not working"); } }) GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } private func startReadingNFC(result: @escaping FlutterResult) { flutterResult = result session_tag = NFCTagReaderSession(pollingOption: .iso14443, delegate: self, queue: DispatchQueue.main) session_tag?.alertMessage = "Hold ur phone!" session_tag?.begin() } func tagReaderSessionDidBecomeActive(_ session: NFCTagReaderSession) { print("Tag session active") } func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { print("Did detect tag reader session") print(tags.count) if case let NFCTag.miFare(tag) = tags.first! { session.connect(to: tags.first!) { (error: Error?) in print(tag) } } } func tagReaderSession(_ session: NFCTagReaderSession, didInvalidateWithError error: Error) { print("Tag Error: \(error.localizedDescription)") } } When i'm pressing the button "read tags" in my app, i can see the NFC reading window on my phone But, when i put the card up to the phone, there is noting happened NFCNDEFReaderSession // the same part @available(iOS 13.0, *) @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate, NFCNDEFReaderSessionDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { let controller : FlutterViewController = window?.rootViewController as! FlutterViewController let nfcChannel = FlutterMethodChannel(name: "samples.flutter.dev/nfc", binaryMessenger: controller.binaryMessenger) nfcChannel.setMethodCallHandler({ [weak self] (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in // Note: this method is invoked on the UI thread. guard call.method == "getNFCTag" else { result(FlutterMethodNotImplemented) return } if NFCNDEFReaderSession.readingAvailable { print("we are ready for reading"); self?.startReadingNFC(result: result) } else { print("sorry byt not working"); } }) GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } func startReadingNFC(result: @escaping FlutterResult) { print("start reading session") flutterResult = result session_tag = NFCNDEFReaderSession(delegate: self, queue: DispatchQueue.main, invalidateAfterFirstRead: false) session_tag?.alertMessage = NSLocalizedString("Hold it!", comment: "my comment") session_tag?.begin() } func tagReaderSessionDidBecomeActive(_ session: NFCNDEFReaderSession) { print("Tag session active") } func readerSession(_ session: NFCNDEFReaderSession, didDetectNDEFs messages: [NFCNDEFMessage]) { print(messages) for message in messages { for record in message.records { print("next message") print(record) } } } func readerSession(_ session: NFCNDEFReaderSession, didInvalidateWithError error: Error) { print("Tag Error: \(error.localizedDescription)") } func tagReaderSession(_ session: NFCNDEFReaderSession, didInvalidateWithError error: Error) { print("Tag Error: \(error.localizedDescription)") } } After pressing the button in the app, NFC reading window also shows up. And with the same card i can get the payload message in a console Both approaches start fine and open the iOS's window with "read a tag", but with NFCTagReaderSession nothing is happening. It seems like there is no card. With NFCNDEFReaderSession implementation, I can read the message "My text with spaces" but, of course, I can't read the tag's UID Am I doing something wrong to get the UID of the card?
Posted
by
Post not yet marked as solved
2 Replies
3.3k Views
Hello everyone, I purchased a level lock touch earlier this year. It’s a lock I have on my front door and side door. One of the ways it can be unlocked is with an NFC card. You can tap the card and the lock opens. Since the apple devices have NFC, and so does the level lock touch, I figured there must be a way to just unlock the door by tapping my devices. I asked apple about this and they said they couldn’t help me. I reached out to Level and they said apple will be selling a new level lock + which on October 21st which does exactly what I’m wanting to do….for $329! my question is, if both devices have NFC- couldn’t there just be some type of software update to allow this feature to happen. Instead- someone has to purchase a whole new lock!? I know it’s all about money but it just doesn’t make sense to me. does anyone maybe know of a third party app that can read the level lock nfc card and allow me to open the lock by tapping my device? In the mean time I’ll keep looking for another way besides shelling out another 329 for a lock. Smh
Posted
by
Post not yet marked as solved
3 Replies
926 Views
Hi everyone, I work in a company with NFC-enabled reader manufacture. As for the title, I have searched for it for a lone time. Not NFC Certificate Request, it's for issuing passes. I inquired about MFI and the reply was that NFC is not within the scope of MFI. I have asked the local Apple team for help and they have no contact information for other teams and it is not clear which team to contact. My questions are below. Where is the correct and official contact window for Apple VAS? Is my post posted in the correct forum? If not, can you provide the correct place to ask? If possible, I hope to know the conditions for obtaining VAS authorization. Thanks a lot. Ken.
Posted
by
Post not yet marked as solved
0 Replies
404 Views
Dear Apple Support Team, I am writing to bring to your attention an issue we have encountered with NFC (Near Field Communication) functionality on Apple devices, specifically related to the initiation of new NFC sessions after tapping the 'Cancel' button during a previous session. This issue seems to occur predominantly when the device is in Aeroplane mode. The problem we are facing is that the NFC pop-up fails to initiate when a user tries to start a new NFC session after cancelling a previous one. This limitation has caused inconvenience for both our team and our users, as we rely heavily on NFC technology for various applications. We kindly request your support and expertise in investigating and resolving this issue. We understand the complexities involved in addressing such matters and greatly appreciate your dedication to improving the functionality of Apple products. By addressing this problem, you would contribute to enhancing the reliability and user experience of NFC technology on Apple devices. If you require any additional information or need further clarification regarding this issue, please do not hesitate to reach out to us. We are committed to assisting you in any way possible to help resolve this matter. Thank you for your attention to this issue. We value our partnership with Apple and look forward to your prompt response.
Posted
by
Post not yet marked as solved
0 Replies
586 Views
Hi, I am using the below code to detect if NFC is enabled or not. (BOOL)isNFCAvailable { if ([NFCNDEFReaderSession readingAvailable]) { return YES; } return NO; } I have also added the permission is info.plist file NFCReaderUsageDescription Detecting if NFC is enabled or not I am testing on iphone XS with ios 15.6.1 and on iphone 11 with ios 13.2.2. In both the cases, the API is returning false. Can you please let me know if I am missing something.
Posted
by
Post not yet marked as solved
1 Replies
559 Views
Hi. I'm looking to implement "Access Control Cards" in the apple wallet , that when attached to a supported reader, will open the door. I know that VAS (Value added services) protocol is not intended for that, and there is a new protocol called "Apple Access". Anyone knows where I can find the full documentation about this protocol and what are the Apple requirements to distribute and manage those passes. Anyone can refer me to company that has readers (hopefully with 26bit wiegand - so I can connect it to my controller) that support this Apple Access protocol?
Posted
by
Post not yet marked as solved
0 Replies
373 Views
Hello everyone, this is my first post. I have a question, I understand that it is possible to generate nfc passes and add them to the apple wallet after obtaining the Apple certificate. Apple asks which physical reader is compatible for reading the pass, but is it possible to use an Android or iOS mobile application to read the pass ? Have a nice day. Kind regards,
Posted
by
Post not yet marked as solved
0 Replies
407 Views
Is there a standard for determining the tag type with CoreNFC?
Posted
by
Post not yet marked as solved
0 Replies
592 Views
Invalid entitlement for core nfc framework. The sdk version '16.4' and min OS version '11.0' are not compatible for the entitlement 'com.apple.developer.nfc.readersession.formats' because 'NDEF is missing in the entitlement'. (ID: 5825b68c-1bc8-450e-acfa-37f629843796)
Posted
by
Post not yet marked as solved
0 Replies
1k Views
background nfc isn't working in 16.5... on iphone 11 able to scan nfc using apps and through shortcuts app (when initially scanning) however background nfc is not working at all has anyone else experienced this problem?
Posted
by
Post not yet marked as solved
2 Replies
772 Views
We have several issues enabling our app for Assistive Access: We use Critical Alerts. There seems to be no way to set this up unless we set up the app in "normal" mode first. If we run our app in AA first and then go back to normal the Notification settings page is blank. Notifications show up as saying "New". I am guessing this is a beta issue? We cannot use NFC (no connect sheet is displayed when we try.) We MUST have NFC to connect to our medical device (as well as BlueTooth). These are show stopper issues for our app.
Posted
by
Post not yet marked as solved
2 Replies
963 Views
Hi there, I am using Core NFC and I established the connection with the card, (it means that the info.plist is correct and the entitlement should be correct as well). The app detects the card, but after sending the command 'tag.sendCommand()' I receive this message: [CoreNFC] -[NFCTagReaderSession transceive:tagUpdate:error:]:879 Error Domain=NFCError Code=2 "Missing required entitlement" UserInfo={NSLocalizedDescription=Missing required entitlement} So, what is missing or what am I doing wrong? Here is the code: func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { guard !tags.isEmpty else { return } let hexString = //... if case let .iso7816(tag) = tags[0] { session.connect(to: tags[0]) { error in if let error = error { print("Error: \(error.localizedDescription)") return } let apdu = hexString.convertToAPDU() tag.sendCommand(apdu: apdu) { (response: Data, sw1: UInt8, sw2: UInt8, error: Error?) in // -> here is when the error appears, in the completion print([UInt8](response)) // print -> [] } } } }
Posted
by