Search results for

nfc

1,175 results found

Post

Replies

Boosts

Views

Activity

Detect if HCE app is not the default contactless app and jump directly to the default contactless app selection settings.
Hello, I am developing an HCE-based contactless payment application for the European Economic Area. I want to detect when my application is not the default contactless app and forward the user to the iOS settings for selecting the default contactless app. Question #1: How can I detect that my app is not the default contactless app? Question #2: How can I forward the user directly to the default contactless app selection in iOS settings? This line of code forwards the user to my app’s settings, which contains a reference to the default contactless app selection, but I couldn’t forward the user directly to the default contactless app selection view: UIApplication.shared.open(URL(string: app-settings:root=General)!) There must be a way to jump directly to the default contactless app selection view as described in Apple's commitment to the EU (Case AT.40452, Chapter 3.8): Apple will enable HCE Payment Applications to redirect users directly to the App’s page in settings and include a link which will take the user
2
0
460
Sep ’24
Reply to App Clip launches in Safari but not from QR code with same URL
I was about to post a similar question, since I've been struggling with this exact issue for the last 3 days. The default app clip does not pop up when invoked from a QR code or NFC with a URL of the associated domain. I've read and re-read the docs (and re-watched all the app clip WWDC sessions) and they never directly address this. I'm suspecting that yes, Advanced App Clip Experiences are needed to use associated domains. The docs say: A default App Clip experience is required and can be invoked using Safari and Messages, as well as through an NFC tag, QR code, and links in other apps when using an Apple-provided App Clip link. Incredibly confusing. Why do Safari and Messages support the associated domain and not NFC or QR? And why not just say that in simple terms? I'd love for someone from Apple to confirm what the expected behavior is.
May ’25
Reply to HCE in iPhone
I’m developing an app that uses Host Card Emulation (HCE) and card emulation to interact with NFC readers for product verification. We’ve obtained the necessary HCE entitlements from Apple, and everything works perfectly in our local builds. However, once we deploy the app to TestFlight, the HCE functionality stops working. Has anyone else experienced this issue or found a solution?
Topic: App & System Services SubTopic: Core OS Tags:
May ’25
Reply to Core NFC UI issue
If your app is actively reading an NFC tag, the system UI will appear, and you cannot scan without this UI. You can Add support for background tag reading to your app. Argun Tekant /  DTS Engineer / Core Technologies
Topic: App & System Services SubTopic: Hardware Tags:
May ’25
App Clip Not Launching – Correct Bundle ID and AASA, Still Not Working
Hi everyone, I’m trying to launch an App Clip for my app, and I’ve been stuck trying to debug why the App Clip won’t launch in production, despite everything seemingly being set up correctly. My setup: Main app bundle ID: com.release.cosa App Clip bundle ID in Xcode: com.release.cosa.appclip In App Store Connect, the App Clip is listed as: com.release.cosa.appclip My AASA file (served with correct headers from my domain): { appclips: { apps: [com.release.cosa.appclip] } } App Clip target and entitlements are properly set in Xcode What works: App Clip launches via local testing in Xcode (Simulator and physical device) App Clip works when triggered manually from Safari (while debugging) What doesn’t work: NFC tag or Universal Link from the real world does not trigger the App Clip On device, nothing happens – not even a fallback to Safari No errors shown to user
1
0
176
Apr ’25
NFC HCE CardSession.isSupported crash
I am getting report of a crash occurring, while doing a NFC HCE CardSession. The swift code is mostly the same as the example from the CardSession docs: @objc func deviceSupportsNFC (_ call: CAPPluginCall) { call.keepAlive = true let supportsNFCCallbackId = call.callbackId! Task() { guard NFCReaderSession.readingAvailable, CardSession.isSupported, // <-- line 86 await CardSession.isEligible else { print(TAG + HCE not allowed/available) var support = JSObject() support[supported] = false; let callback = bridge?.savedCall(withID: supportsNFCCallbackId) call.resolve(); callback?.resolve(support); return; } print(TAG + HCE allowed) var support = JSObject() support[supported] = true; let callback = bridge?.savedCall(withID: supportsNFCCallbackId) call.resolve(); callback?.resolve(support); } } Calling it from my plugin, to verify if (HCE) NFC is supported: if(await deviceInfoService.isIos()) { if(iosSupportEnabled === false) { console.log(NfcHceService:iOS but disabled); return; } this.requi
1
0
180
May ’25
Reply to How to Copy Mifare Card to NFC
What do you mean by copy card to NFC? Are you trying to make a copy of a card to another card? If so, the sample Creating NFC Tags from Your iPhone if both the original and the writable card are accepting MiFare commands. If what you mean by copy to NFC is whether you can emulate a MiFare card using your app, that is complicated. Currently there are several special programs that will allow apps to emulate cards. 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) Tap to Pay on iPhone which will need you to work with a Payment Service Provider in your region All 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
Topic: Community SubTopic: Apple Developers Tags:
May ’25
Credit card ICC Public Key Certificate retrieval
Hello! I have a requirement to read the ICC Public Key Certificate from an EMV credit card to implement a payment validation flow. Aa far as I understand, I can't use Core NFC for that task since it is not supposed to be used for reading sensitive credit card data and it might be rejected by Apple. I'm trying to use Tap To Pay as it seems to offer some general card details. Since Apple's documentation on this side is pretty limited, I'm struggling to understand what is a PaymentCardReader.Token and how can I create one? Can anyone please help me with setting up Tap to Pay?
2
0
558
Jan ’25
Forcing keyboard to appear when a physical keyboard is attached
I am writing an apps with swift and Xcode 8 IDE for an iPad. The apps is using a physical barcode reader and an NFC card reader device. These devices is detected as keyboards by iOS. With this, the on-screen keyboard will not appear even if a text field is selected. In some part of my application I need a virtual keyboard to appear when a text field is selected. How can I overcome this issue? Thnks
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
302
Nov ’16
Reply to Why app clips card action not open the main app while main app is installed?
Hi Could anyone give a confirmation on my comment? In my case , i would read a nfc tag and launch an clip card on my local device, do you mean there is no way now to test the experience from clip card OPEN button to full app? For that , I must upload and publish my app to App Store within App Clip? Is there any possibility to test this whole experience through testflight ? Great thanks!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’25
Apple Watch NFC Tags
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
59
0
55k
Aug ’23
NFC class "NFFieldNotification" not loaded or does not exist
I am using NFC when the phone is near the NFC reader times below the error: 2024-07-15 15:43:03.608427+0800 TestNFC[16022:1038141] [xpc.exceptions] connection to service with pid 58 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 NFFieldNotification not loaded or does not exist my code: #import @interface ViewController () @property (strong, nonatomic) NFCTagReaderSession *session; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.view.backgroundColor = [UIColor whiteColor]; if (@available(iOS 13.0, *)) { // 初始化 NFC 设置代理 NFCTagReaderSessionDelegate if (NFCNDEFReaderSession.readingAvailable) { self.session = [[NFCTagReaderSession alloc] initWithPollingOption:NFCPollingISO14443 delegate
1
0
588
Apr ’25
Reply to CardSession.Error doubts
You may not be able to force reproduce these errors easily, so you may need to mock the error conditions to test your code paths. radiodisabled - the NFC radio can be disabled on a managed device via an MDM profile. That is when you will get this error transmissionerror - this would be caused by problems during transmission between the two NFC devices. Could be noise, could be interruption. This is a non-terminal error, meaning you can try the send operation again, as long as the connection is still active emulationStopped - you would get this error if you try to send a command after calling stopEmulation() accessnotaccepted - means the user declined the permission systemeligibilityfailed - is when the app is running on a device that is not eligible to use CardSession. Either not correctly configured, or outside the eligibility regions. Argun Tekant /  DTS Engineer / Core Technologies .
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’25