Search results for

nfc

1,175 results found

Post

Replies

Boosts

Views

Activity

Send APDU Commands to iso7816 in background
Hello iPhone xs for testing XCode 15.3 I've successfully managed to select the AID and send other commands to a SmartCard using the following code: class NFCReader: NSObject, ObservableObject, NFCTagReaderSessionDelegate { func startNFCSession() { session = NFCTagReaderSession(pollingOption: [.iso14443], delegate: self, queue: nil) session?.alertMessage = Hold your iPhone near the NFC tag. session?.begin() // Start the session } func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { guard let tag = tags.first else { // Safely unwrap the first tag session.invalidate(errorMessage: No SmartCard detected.) return } session.connect(to: tag, completionHandler: { (error: Error?) in if let error = error { session.invalidate(errorMessage: Unable to connect to SmartCard: (error.localizedDescription)) return } switch tag { case let .iso7816(iso7816Tag): self.sendAPDUCommandSelect(to: iso7816Tag) self.sendAPDUCommand_2(to: iso7816Tag) default: print(Not iso7816 type) // Update the Swif
1
0
824
May ’24
App Clip Invocation Issues on iOS 18 and iOS 18.1 - NFC and QR Invocation not working for Default App Clip Experience
We have identified an issue on iOS 18 and iOS 18.1 (developer beta) where App Clips invoked via NFC or QR codes without a pre-configured Advanced App Clip experience (aka they should be using the Default App Clip Experience) are not functioning as expected. This issue is specific to iOS 18, as the behavior works correctly on iOS devices running 17.x. Steps to Reproduce: Set up two scenarios: One scenario where an App Clip has a pre-configured advanced app clip experience (with metadata such as title, subtitle, image). Another scenario where the App Clip is invoked without any pre-configured experience (should use the default App Clip experience). On an iOS 18 or iOS 18.1 device: For the default App Clip experience (no pre-configured advanced app clip experence): Scan the NFC tag when the phone is locked. Scan the NFC tag when the phone is unlocked. Scan the QR code. For the pre-configured App Clip experience: Perform the same tests (NFC and QR code scans). Test the same sce
4
0
1.8k
Oct ’24
AppClip Card image is not appear
I have AppClip set up in AppStoreConnect and it is activated when read by NFC. After trying several times, sometimes the AppClip card does not show up. (I don't think it's a communication speed issue as it doesn't show up after some time). As for the cards, we are only aware of the AppStroeConnect settings. I tried changing the image file of the card to one with a reduced size, but that did not completely resolve the issue. If you have anything to investigate to resolve the issue, I would appreciate it if you could let me know.
1
0
502
Oct ’24
Reply to AppClip Card image is not appear
I have AppClip set up in AppStoreConnect and it is activated when read by NFC. After trying several times, sometimes the AppClip card does not show up. (I don't think it's a communication speed issue as it doesn't show up after some time). In which environment does the issue occur? During development while using a local experience? TestFlight? Using an App Clip live in the App Store? To test invocations and explore the design of your App Clip card during development, configure a local experience on your test device. With a local experience, you can launch your App Clip by: *Scanning an App Clip Code, QR code, or NFC tag you’ve created to launch the local experience. ... To test your launch experience with a local experience, follow the steps in Test invocations with a local experience.
Oct ’24
NFC Kaput
I keep seeing this in the Xcode when I launch my app: -[NFCTagReaderSession beginSessionWithConfig:]:468 error:Error Domain=NFCError Code=203 System resource unavailable UserInfo={NSLocalizedDescription=System resource unavailable}, errorCode: 0xcb Initially, the device was working with NFC. Now on multiple complete restarts of my app, the System resource is still not available. If I lock the screen and reenter iOS again, the problem persists. Rebooting the device appears to get it working again. I suspect this is only happening on iPhone 15 and iOS 18.01. My other devices I have do not exhibit the problem. I'd wager some service in the OS has crashed? There also appears to be limitation on renewing nfc sessions. Similar problems on iPhone 16 to what I experienced on iPhone 15. I don't know what they did with iPhone 15 and 16 but the NFC has really deteriorated for longer sessions. Seems the newer Apple HW is worse at NFC than my iPhone 11. Just providing feedback. The devi
4
0
1.2k
Oct ’24
Reply to NFC Kaput
So, is the device not working with NFC at all, or only your app? If the problem is only with your app, my first guess would be that you are trying to activate multiple reader sessions. Make sure you don't have an active session anywhere in the app before you call beginSession. Also, not only per app, but there can only be a single active NFC reader session on the device. So, double check your testing procedures to make sure you don't have another app trying to read NFC at the same time. Based on your additional question about renewing NFC sessions, it could also be that you are trying to extend the session using a trick, and that might be causing the multiple active sessions, leading to this error. While it was possible to use certain tricks to extend the NFC sessions beyond what was initially allowed, these loopholes have now been closed - which is probably why you think the new phones have issues with longer sessions. They do, that it is no longer possible to ext
Topic: App & System Services SubTopic: Hardware Tags:
Oct ’24
Reply to Read Debit/Credit Card data using NFC
It is not possible to interact with payment related cards using the base CoreNFC APIs. Currently there are two special programs that will allow apps to interact with payment cards/readers. You can read about the capabilities and requirements for these use cases in the following documents: NFC & SE Platform for secure contactless transactions HCE-based contactless transactions for apps in the European Economic Area (EEA) Both these programs have strict geographic and eligibility requirements, which you can find out at the above links. If you are not eligible at this time, no other use cases are supported. Argun Tekant /  DTS Engineer / Core Technologies
Oct ’24
Data transfer using NFC
I am 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?
3
0
4.7k
Nov ’23
Getting or setting UID with HCE
Hi, we are trying to get or set the NFC UID when doing HCE CardSession emulation, but can't find any way to either get the chip UID used in a session, or set it beforehand. Is that possible with a normal HCE CardSession eventStream received ADPU event? Or is another framework/product needed for this? We've done a Interoperability request (INTEROP-214), which lead us to using HCE. Our usecase is specifically interacting with EV chargers, that only support using the chips UID for identification. Can Apple Pay / Wallet be an alternative to do such low level handling?
2
0
514
Oct ’24
Reply to Wallet open while Write NFC
Hello, I'm currently developing an iOS app using CoreNFC that interacts with an RFID reader to facilitate data writing via NFC. My use case involves writing specific NFC tag data to an RFID reader in the context of an electric vehicle charging station that supports multiple RFID standards (ISO/IEC 14443A/B, ISO/IEC 15693, Mifare, FeliCa™, etc.). However, every time I attempt this NFC write operation, the Apple Wallet app opens, preventing my app from completing the NFC session. Here are the details of the issue: I'm using the lower-level NFCISO14443ReaderSession API for direct tag communication, not NDEF. I do not want to create a virtual NFC tag for contactless transactions; I only need to write the NFC tag data to the RFID reader, and the iPhone should act as an initiator, not a tag emulation device. This behavior is consistent, and despite ensuring that I am not working with NDEF tags, the Wallet app is triggered each time. I understand that CoreNFC sup
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’24
NFCTagReaderSession host card emulation (HCE) exception
I'm trying to read a tag generated by my app that emulates event input tags; in my NFC reader app and I get this error: <NSXPCConnection: 0x300a108c0> connection to service with pid 62 named com.apple.nfcd.service.corenfc: Exception caught during decoding of received selector didDetectExternalReaderWithNotification:, dropping incoming message. Exception: Exception while decoding argument 0 (#2 of invocation): Exception: decodeObjectForKey: class NFFieldNotificationECP1_0 not loaded or does not exist ( 0 CoreFoundation 0x0000000192b00f2c 76A3B198-3C09-323E-8359-0D4978E156F5 + 540460 1 libobjc.A.dylib 0x000000018a9a32b8 objc_exception_throw + 60 2 Foundation 0x0000000191932584 D27A6EC5-943C-3B0E-8D15-8840FD2914F0 + 38276 3 Foundation 0x0000000191930d10 D27A6EC5-943C-3B0E-8D15-8840FD2914F0 + 32016 4 Foundation 0x000000019198f460 D27A6EC5-943C-3B0E-8D15-8840FD2914F0 + 418912 5 Foundation 0x000000019198c510 D27A6EC5-943C-3B0E-8D15-8840FD2914F0 + 406800 6 Foundation 0x00000001919e4cf4 D27A6EC5-943C-3
2
0
730
Sep ’24
Reply to Wallet open while Write NFC
What API are you using to write the NFC tag data? Basic CoreNFC functionality only allows apps to write to a tag (Creating NFC Tags from Your iPhone). If what you mean by Write Virtual NFC is you want your app to turn into a tag so the reader can interact with it, this is not possible except for very specific use cases. You can read about the capabilities and requirements for these use cases in the following documents: NFC & SE Platform for secure contactless transactions HCE-based contactless transactions for apps in the European Economic Area (EEA) At this time, no other use cases are supported. Argun Tekant /  DTS Engineer / Core Technologies .
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’24