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

58 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
3.4k 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
959 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
612 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
582 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
391 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
422 Views
Is there a standard for determining the tag type with CoreNFC?
Posted
by
Post not yet marked as solved
0 Replies
617 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
812 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
1k 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
Post not yet marked as solved
0 Replies
394 Views
Good day everyone, We have an app containing App Clip which should appear after scanning an URL from an NFC tag. Now if the tag contains ONLY one NDEF URL Record, the App Clip appears. But if there are more fields (as in our case), while URL record being still the first. App Clip is not started, iOS tries to open URL in safari. Is there might be official statement from Apple on this? Could not find any reference in the docs.
Posted
by
Post not yet marked as solved
0 Replies
637 Views
Hello All, I am using the sample code provided in this website https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app I modified the MessagesTableViewController file to read and authenticate the Ntag213 tag. Since the Ntag213 is compatible with Mifare Commands. I used that in my code. I have attached the code below. import UIKit import CoreNFC /// - Tag: MessagesTableViewController class MessagesTableViewController: UITableViewController, NFCNDEFReaderSessionDelegate { // MARK: - Properties let reuseIdentifier = "reuseIdentifier" var detectedMessages = [NFCNDEFMessage]() var session: NFCNDEFReaderSession? // MARK: - Actions /// - Tag: beginScanning @IBAction func beginScanning(_ sender: Any) { guard NFCNDEFReaderSession.readingAvailable else { let alertController = UIAlertController( title: "Scanning Not Supported", message: "This device doesn't support tag scanning.", preferredStyle: .alert ) alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) self.present(alertController, animated: true, completion: nil) return } session = NFCNDEFReaderSession(delegate: self, queue: nil, invalidateAfterFirstRead: false) session?.alertMessage = "Hold your iPhone near the item to learn more about it." session?.begin() } // MARK: - NFCNDEFReaderSessionDelegate /// - Tag: processingTagData func readerSession(_ session: NFCNDEFReaderSession, didDetectNDEFs messages: [NFCNDEFMessage]) { DispatchQueue.main.async { // Process detected NFCNDEFMessage objects. self.detectedMessages.append(contentsOf: messages) self.tableView.reloadData() } } func addMessage(fromUserActivity ndefMessage: NFCNDEFMessage) { // Add the message to the list of detected messages detectedMessages.append(ndefMessage) // Reload the table view tableView.reloadData() } func readerSession(_ session: NFCNDEFReaderSession, didDetect tags: [NFCNDEFTag]) { guard let tag = tags.first else { return } session.connect(to: tag) { error in if let error = error { // Handle connection error print(error.localizedDescription) session.invalidate() return } if let miFareTag = tag as? NFCMiFareTag { // Get the password and PACK values from base64 let pwdBytes = Data(base64Encoded: "ABCDEFG")! let packBytes = Data(base64Encoded: "XYZ")! // Authenticate the tag let authenticationCommand = Data([0x1B] + pwdBytes.map { $0 as UInt8 }) miFareTag.sendMiFareCommand(commandPacket: authenticationCommand) { response, error in if let error = error { // Authentication failed print("The tag is not authenticated") session.invalidate() return } // Authentication succeeded // Continue with further operations if response == packBytes { print("The tag is authenticated") } else { print("The tag is not authenticated") } } } else { // Handle unsupported tag type session.invalidate() } } } func readerSession(_ session: NFCNDEFReaderSession, didInvalidateWithError error: Error) { // Check the invalidation reason from the returned error. if let readerError = error as? NFCReaderError { // Show an alert when the invalidation reason is not because of a // successful read during a single-tag read session, or because the // user canceled a multiple-tag read session from the UI or // programmatically using the invalidate method call. if (readerError.code != .readerSessionInvalidationErrorFirstNDEFTagRead) && (readerError.code != .readerSessionInvalidationErrorUserCanceled) { let alertController = UIAlertController( title: "Session Invalidated", message: error.localizedDescription, preferredStyle: .alert ) alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) DispatchQueue.main.async { }}}}}
Posted
by
Post not yet marked as solved
2 Replies
1k Views
I am developing an iOS app in which the device(iPhone) needs to act as an NFC tag using Felica so that an NFC reader could read the information present in this virtual tag (like person details). Currently Suica and Pasmo is being used for contact less payment but we ant to use the same technique but for our IOS app. Is it possible to achieve this ?
Posted
by