Search results for

“nfc”

1,191 results found

Post

Replies

Boosts

Views

Activity

Reply to How to Entitle an iOS app to read NCF cards
Special permissions are only needed if you are trying to read payment related cards (bank cards, credit cards, transit cards, etc.). You can freely read regular NFC cards/tags as long as they are one of the supported types. There is an “entitlement” you need to set in your app to match the card info you are trying to read, but that does not require a special permission. There is even a sample app you can use to start reading tags to see how things work. You would just need to change the settings in the entitlements to match the card type. Like I said, as long as it is a supported type and not payment related. If you are trying to read payment cards, there are several ways to acquire that permission depending on your use case. https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app Argun Tekant /  DTS Engineer / Core Technologies
Nov ’24
Testflight Validate ERROR ITMS-90778 NDEF is disallowed
I am trying to upload my app to TestFlight, which using CoreNFCUnfortunately, I got the error message on Testflight Validate part in (SDK version 13 and 13.1).I already tried [this]: Xcode 11 beta can't upload app to TestFlightbut it will Lose NDEF function [this]: https://stackoverflow.com/a/58128365/5588637Error messages: Invalid entitlement for core nfc framework The sdk version 13.0 and min OS version 13.0 are not compatible for the entitlement 'com. Apple developer nfc. Readersession formats because NDEF is disallowedI already choose target iOS 13.1 in XCode, but also have this error.image 1: https://user-images.githubusercontent.com/19588517/65782718-dceb9180-e180-11e9-88d9-d21c2dcb5701.pngimage 2: https://user-images.githubusercontent.com/19588517/65782843-263be100-e181-11e9-8639-48fb64c5e08d.png
16
0
14k
Dec ’22
Reply to iOS HCE - Select PPSE
Thanks for your response. To be clearer on my question, my app entitlement has a list of registered AIDs. I want to be able to use a subset of the registered AIDs in the Select PPSE response APDU. You mentioned that by default, the system responds with all the registered AIDs under the app's entitlement. Does iOS always handle the Select PPSE C-APDU and provide the R-APDU including all the app's registered AIDs? Does the app see the Select PPSE C-APDU and can it provide its own Select PPSE R-APDU (with the subset of registered AIDs) back to the NFC reader?
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’24
Apple Developer Account Error
Hello, I need Near Field Communication (NFC) for one Project. The problem is that you need to enable NFC in Xcode Capabilities and need for that a Apple Developer Account. I tried to create a Apple Developer Account but because im 17 years old, im getting the error: Sorry, you can’t enroll at this time. Are there any solutions? Thanks for help!
2
0
718
Mar ’22
iOS Automation could not run because an internal error occurred
I am developing a shortcut for an application that is currently in production. The shortcut essentially involves opening the application and launching a notification so that the AppDelegate initiates a process to scan NFC tags. To achieve this, I have an AppIntent that overrides the variable openAppWhenRun = true and an AppShortcutsProvider to implement this intent. The problem arises when a user updates to the latest version of the application and tries to implement this shortcut through an automation. The following error appears: When 'Reader' is detected encountered an error: The action 'Scan DMA tags' could not run because an internal error occurred. This does not always happen, only on some devices. However, if we uninstall and reinstall the application, it works perfectly. But this is not a viable solution since the application uses a database and data loss from frequent uninstallations is not acceptable. Any solution? I have tried to replicate the error but have been unable to do so. This issu
2
0
1k
May ’24
Reply to NFC shortcuts to apple fitness not working
It would be helpful to first determine what is actually failing. Is it the NFC scan not happening, or something is broken with the shortcuts that they are not running. You may want to isolate them, perhaps create a very simple shortcut for the NFC scan, and see if that runs. If it does that would mean there are no issues with the tags, and you can try to debug your shortcuts at that time.
Oct ’24
NFC (ISO7816)- Tag Connection Lost IPhone 15 & 16 variants
NFC reading starts but after BAC, during the reading of DG2 the NFC stops reading and returns with Tag connection Lost error . It almost fails everytime on iPhone 15 Pro max with the following error. What's the solution for this? This is really important because our app entirely relies on the NFC data to proceed forward. This always fails in iPhone 15 & 16. Same card works fine on older iPhone models. What change should we do or include for the newer models. Error Domain=NFCError Code=102 Tag response error / no response UserInfo={NSLocalizedDescription=Tag response error / no response, NSUnderlyingError=0x303bd6af0 {Error Domain=nfcd Code=29 Tag Error UserInfo={NSLocalizedDescription=Tag Error, NSUnderlyingError=0x303bd6910 {Error Domain=com.apple.nfstack Code=20 No response from tag UserInfo={NSLocalizedDescription=No response from tag}}}}}
2
0
1.1k
Oct ’24
Reply to How to Create an NFC-Enabled Wallet Pass with pass.json Including NFC Field?
@Engineer Hello, I am working on creating an NFC-enabled Apple Wallet pass, but I am having trouble getting the NFC functionality to activate. I understand that NFC Wallet passes need to be tested on a reader that supports the Apple VAS (Value Added Services) protocol, but before that, I need to ensure that NFC is properly enabled in my pass. Above pass.json file i am currently use in my question. Could you provide a working example of a pass.json file with NFC fully enabled for Apple Wallet? This would help me ensure that my setup is correct. Thank you for your assistance!
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’24
How to Create an NFC-Enabled Wallet Pass with pass.json Including NFC Field?
Hello, I’m working on creating an NFC-enabled Apple Wallet pass and I need assistance with the proper implementation of the pass.json file to include NFC functionality. My goal is to enable NFC interactions, such as tapping to unlock a door or interacting with other NFC systems. Here is what I have done so far: Set up a Pass Type ID and Certificates: I have registered a Pass Type ID in my Apple Developer account. I have generated and installed the required certificates (Pass Type ID certificate and WWDR certificate). Backend Integration: I have set up a backend service for generating passes, and I can successfully create and deliver standard Wallet passes without the NFC functionality. Adding the NFC Field: I understand that to enable NFC interactions, I need to add an nfc dictionary to the pass.json file. The key components for NFC include the encryptionPublicKey, message, and payload. Here’s an example of my current pass.json:
2
0
1.7k
Oct ’24
How to read Mifare Classic 1k ISO 14443-3A card details?
Developing an application to read card details using NFC. Actually, it's a cross-platform (MAUI) app, but it implements the code in native. ISO 14443-4 cards are working fine when tap a card DidDetectTags method hitting. For the mentioned Mifare card it's not working. Tried in NFCTagReaderSessionDelegate and NFCNDEFReaderSessionDelegate. Also in the info.plist configured below keys com.apple.developer.nfc.readersession.iso7816.select-identifiers //Confirured more than 200+ keys com.apple.developer.nfc.readersession.formats TAG NDEF Testing device : iPhone 7 plus, iOS : 15.8 I am suspecting selector identifier may not configured correctly for mifare classic 1k card, can anyone help me on this what i am missing?
1
0
1.8k
Nov ’23
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
834
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
How to Entitle an iOS app to read NCF cards
Hi, I am searching for the possibilities to enable one of my app to be able to read NFC cards, my observation based on my search resulted that the app should be first 'entitled' (special permissions) by Apple, which I am unaware of its procedures, can anyone please shed some light on its forward path?
Replies
1
Boosts
0
Views
486
Activity
Nov ’24
Reply to How to Entitle an iOS app to read NCF cards
Special permissions are only needed if you are trying to read payment related cards (bank cards, credit cards, transit cards, etc.). You can freely read regular NFC cards/tags as long as they are one of the supported types. There is an “entitlement” you need to set in your app to match the card info you are trying to read, but that does not require a special permission. There is even a sample app you can use to start reading tags to see how things work. You would just need to change the settings in the entitlements to match the card type. Like I said, as long as it is a supported type and not payment related. If you are trying to read payment cards, there are several ways to acquire that permission depending on your use case. https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app Argun Tekant /  DTS Engineer / Core Technologies
Replies
Boosts
Views
Activity
Nov ’24
Testflight Validate ERROR ITMS-90778 NDEF is disallowed
I am trying to upload my app to TestFlight, which using CoreNFCUnfortunately, I got the error message on Testflight Validate part in (SDK version 13 and 13.1).I already tried [this]: Xcode 11 beta can't upload app to TestFlightbut it will Lose NDEF function [this]: https://stackoverflow.com/a/58128365/5588637Error messages: Invalid entitlement for core nfc framework The sdk version 13.0 and min OS version 13.0 are not compatible for the entitlement 'com. Apple developer nfc. Readersession formats because NDEF is disallowedI already choose target iOS 13.1 in XCode, but also have this error.image 1: https://user-images.githubusercontent.com/19588517/65782718-dceb9180-e180-11e9-88d9-d21c2dcb5701.pngimage 2: https://user-images.githubusercontent.com/19588517/65782843-263be100-e181-11e9-8639-48fb64c5e08d.png
Replies
16
Boosts
0
Views
14k
Activity
Dec ’22
Reply to iOS HCE - Select PPSE
Thanks for your response. To be clearer on my question, my app entitlement has a list of registered AIDs. I want to be able to use a subset of the registered AIDs in the Select PPSE response APDU. You mentioned that by default, the system responds with all the registered AIDs under the app's entitlement. Does iOS always handle the Select PPSE C-APDU and provide the R-APDU including all the app's registered AIDs? Does the app see the Select PPSE C-APDU and can it provide its own Select PPSE R-APDU (with the subset of registered AIDs) back to the NFC reader?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’24
Apple Developer Account Error
Hello, I need Near Field Communication (NFC) for one Project. The problem is that you need to enable NFC in Xcode Capabilities and need for that a Apple Developer Account. I tried to create a Apple Developer Account but because im 17 years old, im getting the error: Sorry, you can’t enroll at this time. Are there any solutions? Thanks for help!
Replies
2
Boosts
0
Views
718
Activity
Mar ’22
iOS Automation could not run because an internal error occurred
I am developing a shortcut for an application that is currently in production. The shortcut essentially involves opening the application and launching a notification so that the AppDelegate initiates a process to scan NFC tags. To achieve this, I have an AppIntent that overrides the variable openAppWhenRun = true and an AppShortcutsProvider to implement this intent. The problem arises when a user updates to the latest version of the application and tries to implement this shortcut through an automation. The following error appears: When 'Reader' is detected encountered an error: The action 'Scan DMA tags' could not run because an internal error occurred. This does not always happen, only on some devices. However, if we uninstall and reinstall the application, it works perfectly. But this is not a viable solution since the application uses a database and data loss from frequent uninstallations is not acceptable. Any solution? I have tried to replicate the error but have been unable to do so. This issu
Replies
2
Boosts
0
Views
1k
Activity
May ’24
Reply to NFC shortcuts to apple fitness not working
It would be helpful to first determine what is actually failing. Is it the NFC scan not happening, or something is broken with the shortcuts that they are not running. You may want to isolate them, perhaps create a very simple shortcut for the NFC scan, and see if that runs. If it does that would mean there are no issues with the tags, and you can try to debug your shortcuts at that time.
Replies
Boosts
Views
Activity
Oct ’24
NFC shortcuts to apple fitness not working
Hello. I have NFC tags that I scan before walking my dog, that set off a list of shortcuts. The shortcuts have been failing the last couple of weeks but were fine before that. seems to be a problem with linking to starting a walk in apple watch workouts?! I have the latest iOS 18 public beta running (18.1) and watchOS 11.0.1
Replies
1
Boosts
0
Views
543
Activity
Oct ’24
NFC (ISO7816)- Tag Connection Lost IPhone 15 & 16 variants
NFC reading starts but after BAC, during the reading of DG2 the NFC stops reading and returns with Tag connection Lost error . It almost fails everytime on iPhone 15 Pro max with the following error. What's the solution for this? This is really important because our app entirely relies on the NFC data to proceed forward. This always fails in iPhone 15 & 16. Same card works fine on older iPhone models. What change should we do or include for the newer models. Error Domain=NFCError Code=102 Tag response error / no response UserInfo={NSLocalizedDescription=Tag response error / no response, NSUnderlyingError=0x303bd6af0 {Error Domain=nfcd Code=29 Tag Error UserInfo={NSLocalizedDescription=Tag Error, NSUnderlyingError=0x303bd6910 {Error Domain=com.apple.nfstack Code=20 No response from tag UserInfo={NSLocalizedDescription=No response from tag}}}}}
Replies
2
Boosts
0
Views
1.1k
Activity
Oct ’24
Reply to How to Create an NFC-Enabled Wallet Pass with pass.json Including NFC Field?
@Engineer Hello, I am working on creating an NFC-enabled Apple Wallet pass, but I am having trouble getting the NFC functionality to activate. I understand that NFC Wallet passes need to be tested on a reader that supports the Apple VAS (Value Added Services) protocol, but before that, I need to ensure that NFC is properly enabled in my pass. Above pass.json file i am currently use in my question. Could you provide a working example of a pass.json file with NFC fully enabled for Apple Wallet? This would help me ensure that my setup is correct. Thank you for your assistance!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’24
How to Create an NFC-Enabled Wallet Pass with pass.json Including NFC Field?
Hello, I’m working on creating an NFC-enabled Apple Wallet pass and I need assistance with the proper implementation of the pass.json file to include NFC functionality. My goal is to enable NFC interactions, such as tapping to unlock a door or interacting with other NFC systems. Here is what I have done so far: Set up a Pass Type ID and Certificates: I have registered a Pass Type ID in my Apple Developer account. I have generated and installed the required certificates (Pass Type ID certificate and WWDR certificate). Backend Integration: I have set up a backend service for generating passes, and I can successfully create and deliver standard Wallet passes without the NFC functionality. Adding the NFC Field: I understand that to enable NFC interactions, I need to add an nfc dictionary to the pass.json file. The key components for NFC include the encryptionPublicKey, message, and payload. Here’s an example of my current pass.json:
Replies
2
Boosts
0
Views
1.7k
Activity
Oct ’24
Reply to How to Create an NFC-Enabled Wallet Pass with pass.json Including NFC Field?
What is the problem you are having with your pass? NFC Wallet passes need the reader (the door you are testing, etc.) to support the Apple VAS protocol. Do you have a VAS reader you are testing this with? It will not activate non VAS readers.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’24
How to read Mifare Classic 1k ISO 14443-3A card details?
Developing an application to read card details using NFC. Actually, it's a cross-platform (MAUI) app, but it implements the code in native. ISO 14443-4 cards are working fine when tap a card DidDetectTags method hitting. For the mentioned Mifare card it's not working. Tried in NFCTagReaderSessionDelegate and NFCNDEFReaderSessionDelegate. Also in the info.plist configured below keys com.apple.developer.nfc.readersession.iso7816.select-identifiers //Confirured more than 200+ keys com.apple.developer.nfc.readersession.formats TAG NDEF Testing device : iPhone 7 plus, iOS : 15.8 I am suspecting selector identifier may not configured correctly for mifare classic 1k card, can anyone help me on this what i am missing?
Replies
1
Boosts
0
Views
1.8k
Activity
Nov ’23
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
Replies
1
Boosts
0
Views
834
Activity
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
Replies
4
Boosts
0
Views
1.8k
Activity
Oct ’24