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

101 Posts
Sort by:
Post not yet marked as solved
1 Replies
2k Views
Hi everyone,I'm testing CoreNFC in an app.I use iPhone7, iOS 11 and Xcode 9The app is that when I read NFC tag, webpage appear.when I run this app, one error appear in the log:readerSession(_:didInvalidateWithError:) Error Domain=NFCError Code=204 "Single tag read" UserInfo={NSLocalizedDescription=Single tag read}What happend?
Posted
by
Post not yet marked as solved
3 Replies
1.6k Views
Our Goal : Program the M24LR16E NFC Tag which is manufactured by STMicroelectronicsAbout M24LR16E : Dynamic NFC/RFID tag IC with 16-Kbit EEPROM and ISO 15693 RF interface.We can find more details about M24LR16E here : https://www.st.com/content/st_com/en/products/nfc/st25-nfc-rfid-tags-readers/st25-dynamic-nfc-tags/m24lr-series-dynamic-nfc-tags/m24lr16e-r.html#resourceBy using Core NFC in IOS 13What we achieved : -> We are able to detect the NFC Tag -> We are ablate connect the NFC tag in the Philips driver. -> We are able to get the system information from Philips driver like ( dsfid, afi, blockSize, blockNumber, icReference) -> We are able to Present the passwordWhat we failed to achieve : -> We are not able to read the data from NFC Tag -> We are not able to write the data to NFC TagWe tried a lot to read the data from NFC Tag but we not able to succeed every time when we try we are getting Tag connection lost error.Sample code we use to read the data from NFC Tag : iso15693Tag.extendedReadMultipleBlocks(requestFlags: [.protocolExtension, .highDataRate], blockRange: NSRange.init(location: 32, length: 16)) { (data : [Data], error: Error?) in if error != nil { session.invalidate(errorMessage: "Unable to read data. "+error!.localizedDescription) return } print (data) }Error :2019-10-04 10:56:42.697004+0530 NFCTagReader[592:147595] [CoreNFC] 00000002 83dad900 -[NFCTagReaderSession transceive:tagUpdate:error:]:726 Error Domain=NFCError Code=100 "Tag connection lost" UserInfo={NSLocalizedDescription=Tag connection lost}We tried all the methods readSingleBlock/readMultipleBlock/readMultipleBlocks/extendedReadSingleBlock/extendedReadMultipleBlocks but we always getting response "Tag connection lost" errorOne more Observation : After detecting the M24LR16E NFC Tag (iso15693 NFC Tag) before we connect to that tag checking iso15693Tag.isAvailable which is returning FALSE but Even after connecting iso15693Tag.isAvailable returning FALSE but we are able to call iso15693Tag.getSystemInfo method and get the results.func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { if case let NFCTag.iso15693(iso15693Tag) = tags.first! { print(“Before connect -> iso15693Tag.isAvailable :\(iso15693Tag.isAvailable) " ) tagSession?.connect(to: tags.first!) { (error: Error?) in print(“After connect -> iso15693Tag.isAvailable :\(iso15693Tag.isAvailable) " ) iso15693Tag.getSystemInfo(requestFlags: RequestFlag(rawValue: 0x0A)) { (a, b, c, d, e, error) in print("dsfid: \(a)") print("afi : \(b)") print("blockSize: \(c)") print("blockNumber: \(d)") print("icReference: \(e)") } } }}Finally we found one discussion thread in STMicroelectronics community it states that IOS 13 only supports M24LR04E not yet supported M24LR16E and M24LR64E you can find that thread here : https://community.st.com/s/question/0D50X0000B09Q8SSQU/example-of-using-the-new-ios-13-corenfcHere my question is this Core NFC library will support M24LR16E NFC Tag which is using ISO 15693 RF interface?
Posted
by
Post not yet marked as solved
1 Replies
851 Views
Hey, you all Genius, We are a company connecting devices. Now, looking for support on P2P mode and card emulation in incredible apple. As per our research, core NFC does not provide any support for P2P mode. So please guide a way out for solving complex riddles. Curious to know if ever apple will release any API support for P2P in the near future or a dmg probably. Response Awaited on highest priority.
Posted
by
Post not yet marked as solved
6 Replies
8.7k 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
2 Replies
888 Views
Hello,I am currently writing a little prototype using CoreNFC and NFCTagReaderSession with ISO15693 tags.I have a custom command that takes some data as an input and expects to get output data from the tag.I have successfully sent this command to the tag using the app "NFC Tools" on Android and received the data that I've expected, but fail to get the same response on iOS 13.3.1. All I get is this error:[NFCTagReaderSession transceive:tagUpdate:error:]:735 Error Domain=NFCError Code=102 "Stack Error" UserInfo={NSLocalizedDescription=Stack Error, NSUnderlyingError=0x282454150 {Error Domain=nfcd Code=10 "Invalid Parameter" UserInfo={NSLocalizedDescription=Invalid Parameter}}}Why does this command work on Android but not on iOS?The command lies within the range of valid custom commands (0xA0 to 0xDF) for ISO15693 tags.Has anyone experienced similar issues? Maybe someone can share some learnings. I am grateful for every piece of information or any help.Kind regards.
Posted
by
Post not yet marked as solved
1 Replies
1.1k Views
Description:We are using the `read NFC tag in background` functionality but we are also reading the tags in foreground mode.If we do the Tag scan with NFC, having the app opened (in foreground), we also receive the notification about the scan result comming from the background read functionality. In result, we are experiencing the Tag read completion twice at once being in foreground mode: from foreground read and the background listener.Step-by-step instructions:1. Setup the `NFC background read` listener and the `NFC foreground read` functionality2. Open the app3. Run the NFC session4. Move the iPhone towards the Tag to read itResults we see:The Tag is being read but we are also receiving the notification from the `background NFC reader` at the same time.Results we expect:If the user is in the foreground mode, the app is opened, and he reads the tag, we expect not to receive the notification from the background NFC listener. The notification from the background NFC reader should come only when the app is not active.Suggestions / additional questions1. Is there any way to disable the backgeound NFC reader from notifying when the app is in foreground?2. Let the developer to control the time of closing the foreground NFC session / blocking the bacgound NFC reader from notifying3. Possibility to enable the background NFC reader when the Tag is no longer in iPhones read range
Posted
by
Post not yet marked as solved
1 Replies
1.6k Views
My experience with NFC is very limited, but I'm trying to implement a way to share a URL directly from one iPhone to another using NFC, similar to how Android Beam works. I learned that even though iOS 13 supported writing to tags, it did not support tag emulation necessary for this kind of data exchange to work. I've watched the WWDC 2020 video on the new Core NFC features, but I can't figure out if anything has changed in this regard. I can't find any information about this in the documentation neither. Can anyone with more NFC experience tell me if what I'm trying to do is possible?
Posted
by
Post not yet marked as solved
16 Replies
4.4k Views
I am using iOS 14 beta 3. I read there was an issue with this in earlier iOS 13 betas. It seems to have reappeared with iOS 14? I create a personal automation in Shortcuts with an NFC tag. Works great the first time. Then it never reads it again. If I get an app that can read tags, it reads the tag, so I know the tag is working properly, it's just that the iPhone doesn't read it after the first time. Anyone else have this? I did submit feedback to Apple on iOS 14. Thanks! Dan
Posted
by
Post not yet marked as solved
1 Replies
443 Views
I'm attempting to use the "SET EAS" (A2) custom command for an ICODE SLIX2 tag (Documentation can be found on Google). The custom request parameters are just suppose to be the UID of the tag, but given that I'm using addressed mode, I assume that it gets added automatically, and I don't need to add any request parameters. tag.customCommand(requestFlags: [.highDataRate, .address], customCommandCode: 0xA2, customRequestParameters: Data()) { (data, error) in ... } I have also tried to add the tag UID as a parameter, but no matter what I try I just get a "Invalid Parameter". Can anyone spot what I am doing wrong 😕
Posted
by
Post not yet marked as solved
33 Replies
21k 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
2 Replies
715 Views
Dear development team, it would be fantastic to be able to make smart automations by using NFC stickers with Apple Watch. This would make things much more easier if there are situations where you don't want to use Siri. Would be great to get a feedback.
Posted
by
Post not yet marked as solved
0 Replies
751 Views
Hi all, Currently I am a Android developer for NFC tag. In my application, I use "IsoDep tech" for reading/writing data between smartphone and NFC tag. However, I would like to port my Android app to iOS app. Could everyone tell me know Core NFC (iOS) support for IsoDep tech like android.nfc.tech.IsoDep (Android)? and which the iPhone(XR, XS max,...) support for?
Posted
by
Post not yet marked as solved
15 Replies
26k 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 marked as solved
9 Replies
2.1k Views
Our users faced the problem with App Clips usage, and some of them can't use this experience due to the next problem: There is a billing problem with a Previous Purchase View and correct the problem in your billing info. If you cancel , you may not be able to buy until this billing issue has been resolved. When some of our users tried to open App Clips card, they were getting billing problem popup, but at the same time they could download app from App Store without any problem. This popup blocks any possibilities for further actions with App Clips. Moreover, all information are correct and right. What we discover in one iPhone, is that it has pending payment for iCloud storage, but don't charge. But any possibilities to fix this user don't have. How can we fix it? Ask you for help :(
Posted
by
Post not yet marked as solved
26 Replies
16k 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
0 Replies
1.1k Views
I'm designing a Bluetooth Low Energy accessory without a built-in display. According to the Bluetooth Core Specification (CSv5.0 | Vol. 3, Part H, Table 2.8), that limits pairing to Just Works pairing - which is unauthenticated and has no man-in-the-middle protection even with LE Secure Coonnections. However Section 2.3.5.4 (CSv5.0 | Vol. 3, Part H), states that an out-of-band pairing mechanism may be used to send the TK (temporary key) if both devices support it. That would provide authentication (i.e. MITM protection) beyond Just Works pairing. There are a number of white papers about implementing out-of-band pairing through the NFC radio (e.g. one from 2014 from the NFC Forum). So this is not a new concept. Searching through the forums, I have been unable to find a definitive answer as to whether or not iOS supports OOB pairing through NFC: This same question - https://developer.apple.com/forums/thread/15286 was asked five years ago and unanswered. As of two years ago (which may be old news) the best answer was, AFAIK, no - https://developer.apple.com/forums/thread/111428 1 month ago, the answer was it cannot be done without the pairing dialog. - https://developer.apple.com/forums/thread/676522?answerId=667580022#667580022 But this answer neglected to say whether or not it could be done with the pairing dialog. The Accessory Design Guidelines - https://developer.apple.com/accessories/Accessory-Design-Guidelines.pdf recommend using out-of-band pairing, but this appears to be limited to the USB connection. I have a prototype BLE accessory that implements OOB pairing. This works with a 4-year-old HTC running Android 9 at the OS level - no app required. I tested same accessory with an iPhone 12 running iOS v14.4.2 and was unable to connect or prompt the pairing dialog. Using a BLE sniffer, I was able to see that the iPhone 12's Pairing Request Packet (Bluetooth Core Specification v5.0 | Vol 3, Part H, Section 3.5.1) set the OOB data flag to '0'. So my strong suspicion is it currently cannot be done. My questions are: Does iOS support out-of-band pairing through the NFC radio? If no, are there any plans in the roadmap to support OOB through NFC? Why is Apple at least four years behind Android in implementing this feature?
Posted
by
Post not yet marked as solved
1 Replies
1.1k Views
Hello, I have a big problem with the NFC (I use Ionic & Capacitor), indeed despite having uninstalled and reinstalled it still gives me the same error when I compile it on an IOS emulator: [CoreNFC] 00000002 822651e0 -[NFCHardwareManager areFeaturesSupported:outError:]:154 XPC Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.nfcd.service.corenfc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.nfcd.service.corenfc was invalidated from this process. I don't understand this error, I correctly add the right line on Info.plist to say that I am using NFC. I use the phonegap plugin made for ionic 5. **Ionic v5.33.1 Angular v12.1.0 Capacitor v1.2.0**
Posted
by
Post not yet marked as solved
1 Replies
1.5k Views
My client has an NFC loyalty card for their customers. Since a lot of their customers lose their card or break it they would like to make the card available in Host Card Emulation mode. We're talking hundreds of thousands of card holders, so the advantage of emulating it is huge for them. Is it possible to do this (yet) on the current version of iOS? If so can it be triggered from within an app or is Apple Wallet a solution for this? As it will be available on the Android version of the app I am looking for an elegant way to integrate the same functionality on Apple devices. Please advise.
Posted
by
Post not yet marked as solved
2 Replies
361 Views
On iOS 15 beta 2 and beta 3, NfcReaderSession.invalidate(errorMessage: ) dose not work, and NfcReaderSession.invalidate() is displayed. (The NfcReaderSession.invalidate() for error message dose not work.) It worked fine on iOS 15 beta. This is a beta 2 and beta 3 issue and will it be resolved in the next version?
Posted
by