Search results for

“nfc”

1,194 results found

Post

Replies

Boosts

Views

Activity

NFC custom command failing to read full response
Hi All, We are using a ST25DV NFC tag and Fast Transfer Mode. Our iOS app sends a custom command that sends some data as an input and expects a response from the tag that includes a payload of ~4000 bytes. We have successfully sent this command to the tag using the NFC Tap App on Android and received the full data response. However, on iOS (15.3.1-iPhone 12 Pro) as we loop through and get the response (256 bytes at a time), at random point during the reading of the response we get the following error: [CoreNFC] 00000002 80050360 -[NFCTagReaderSession transceive:tagUpdate:error:]:824 Error Domain=NFCError Code=102 Tag response error / no response UserInfo={NSLocalizedDescription=Tag response error / no response, NSUnderlyingError=0x283c3cde0 {Error Domain=nfcd Code=29 Tag Error UserInfo={NSLocalizedDescription=Tag Error, NSUnderlyingError=0x283c3c1b0 {Error Domain=com.apple.nfstack Code=20 No response from tag UserInfo={NSLocalizedDescription=No response from tag}}}}} We are not using .addres
2
0
2k
Feb ’22
Details on IOS 15.4 “Tap to pay”
Hello, I couldn’t find any details on the new “tap to pay” feature on the newer iPhones. Can someone please provide some details? My main questions are: Can the iPhone 12/13 series receive payments from any payment sources with NFC (Credit/Debit cards with tap to pay, Apple Pay, Samsung Pay, Google Pay, etc.)? Where do the payments go on when receiving them; can they go to Apple Cash? Are there transaction fees? Thanks.
0
0
858
Feb ’22
How to read out several AIDs with NFC tag ISO7816 like polling (Felica)
I have a NFC-B card and it has several application identifiers. I am trying to get two AIDs using an iphone. However, I only knew how to get one AID (item0 of info.plist). I was able to get AIDs one at a time, however, I did not know how to get several AIDs at once. Would you know how to do that? According to an official documentation, it says that a system stores added queue. However, I don’t know how to get the queue. NFCTagReaderSession | Apple Developer Documentation if I can get the queue , I should be able to solve this problem. NFCReader.swift
1
0
1.1k
Feb ’22
Reply to NFC Door Cards with PassKit
Apple Wallet passes use a proprietary protocol called Value Added Service which is only implemented by specific readers, usually in Point-of-Sale terminals, and very rarely in access control. Additionally, in order to use the nfc key in the pass.json file, you have to receive a special Pass Type ID certificate from Apple.
Feb ’22
MaxTransceiveLength in CoreNFC sendMiFareCommand
Hi @everybody, I'm working with NFC Tag of NXP Semiconductor: this tag is not NDEF compliant, but it is part of MIFARE Ultralight family (NFC tag type 2). All operation, both reading and writing, works well. I've just one question that concern the reading of multiple byte from memory: CoreNFC expose a method in order to retrieve the maximum lenght of payload that can be exchanged between Iphone and tag NFC? I mean, is there a command equivalent to the MaxTransceiveLength (https://docs.microsoft.com/en-us/dotnet/api/android.nfc.tech.nfca.maxtransceivelength?view=xamarin-android-sdk-12) used in Android? Here is the code used in order to read data from tag connected: tagConnected!.sendMiFareCommand(commandPacket: command) The command instead is made up in this way: [3A, 00, 42] 3Ah --> Fast Read 00h --> Start byte address 42h --> End byte address I would use the MaxTransceiveLength as maximum distance between Start byte address and End byte address.
0
0
1k
Feb ’22
Problems Updating a View
Hey everyone! While working on an app which reads the Unique Identifiers of NFC tags I ran into a problem. When I run the code the phone is able to read the tag and add the UID into an array (I checked this by making it print the array whenever the array is updated) but I am unable to make the View update. The reason this is tricky is that when you press a button on the view, it activates the reader function reader.activate() which then updates the array in the Data class only if it successfully extracted the UID. How would I make the View reload every time a new UID is added to the array? Below is the code for the content view, Data class and then the NFC reader. Thanks! View: struct ContentView: View { @StateObject var data = Data() let reader : NFCReader = NFCReader() var body: some View { NavigationView { List { Section( header: Text((data.itemCount) + Items) ) { ForEach(data.products, id: .self) { product in Text(product) } .onDelete(perform: data.deleteItem) .onMove(perform: data.move
6
0
1k
Jan ’22
Is it possible to use stored values in transit passes in my app?
I'm planning to create an integrated app that enable to show your transit fees and stations which you get on/off at. I could scratched out parts of my app that analyze and parse values that NFC bundled transit card stored. However I could not find out the way how to use some data stored in transit card of iOS Wallet app. I can see transit information in the Wallet app which I want to use, also there are some document which might shows possibility I could handle these data, https://developer.apple.com/documentation/passkit/pkstoredvaluepassproperties . I'm not really sure it is possible to use(read) these data in my iOS app via using PassKit. If you find some apps which using kind of data, could you please share me some existing app link, or tell me guides or documents which shows roughly how to use PassKit classes / methods.
0
0
430
Jan ’22
Reply to Problems updating a variable
The problem now, is that when you activate your NFCReader, it does not immediately return the tag... ...so you can not immediately assign reader.tagUID To solve this, in NFCReader we can Publish the tagCode... ...and in the View, we show this published value. Then, when NFCReader gets the tagCode, it will automatically update your SwiftUI View. Try this: import SwiftUI import CoreNFC struct ContentView: View { @StateObject private var reader = NFCReader() var body: some View { VStack{ Text(reader.tagUID) Button { reader.activate() } label: { Text(Scan) .font(.title) }.padding() } } } class NFCReader: NSObject, ObservableObject, NFCTagReaderSessionDelegate { @Published var tagUID = UID var session: NFCTagReaderSession? func activate() { self.session = NFCTagReaderSession(pollingOption: .iso14443, delegate: self) self.session?.alertMessage = Hold Your Phone Near the NFC Tag self.session?.begin() } func tagReaderSessionDidBecomeActive(_ session: NFCTagReaderSession) { print(Session Begun!) } func tagRea
Jan ’22
Updating a variable only after a function stops running
Hey again, I recently asked about updating a variable but now have a new problem. I am creating an NFC reader which when I press scan it prints the UID (Unique Identifier) of the NFC in a text field. When the button labeled Scan is pressed, the function activate() runs which activates the NFC reader and updates a variable within the NFCReader class called tagUID to the UID of the NFC chip. After activate() the button then changes tagCode to equal tagUID. The problem is that I want it to update only after the NFCTagReaderSession ends, as it only updates it to the previous UID scanned right now as it did not finish scanning before I update the variable. How do I do this? The code is below: struct ContentView: View { let reader: NFCReader = NFCReader() @State var tagCode = UID var body: some View { VStack{ Text(tagCode) Button { reader.activate() tagCode = reader.tagUID } label: { Text(Scan) .font(.title) }.padding() } } } struct ContentView_Previews: PreviewProvider { static
2
0
717
Jan ’22
Do you need a paid developer account to develop an app clip?
Do you need to be paying apple the 99$ a year for developing an app clip from a nfc or can you do this on a free account ?
Replies
1
Boosts
0
Views
928
Activity
Mar ’22
NFC custom command failing to read full response
Hi All, We are using a ST25DV NFC tag and Fast Transfer Mode. Our iOS app sends a custom command that sends some data as an input and expects a response from the tag that includes a payload of ~4000 bytes. We have successfully sent this command to the tag using the NFC Tap App on Android and received the full data response. However, on iOS (15.3.1-iPhone 12 Pro) as we loop through and get the response (256 bytes at a time), at random point during the reading of the response we get the following error: [CoreNFC] 00000002 80050360 -[NFCTagReaderSession transceive:tagUpdate:error:]:824 Error Domain=NFCError Code=102 Tag response error / no response UserInfo={NSLocalizedDescription=Tag response error / no response, NSUnderlyingError=0x283c3cde0 {Error Domain=nfcd Code=29 Tag Error UserInfo={NSLocalizedDescription=Tag Error, NSUnderlyingError=0x283c3c1b0 {Error Domain=com.apple.nfstack Code=20 No response from tag UserInfo={NSLocalizedDescription=No response from tag}}}}} We are not using .addres
Replies
2
Boosts
0
Views
2k
Activity
Feb ’22
Reply to Apple Watch NFC Tags
+1 here. Bought NFC-Stickers, as I assumed that this is already working out. Disappointing experience. Had to google just to find out, that this isn't a build in feature
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’22
NFC Payload decoding screwy on iOS15.2
Anybody having trouble decoding payload as .utf8 from CoreNFC? Something odd going on.
Replies
0
Boosts
0
Views
707
Activity
Feb ’22
NFC with apple wallet help
I want to create an app that will allow users to scan a NFC card of any type, and add it to apple wallet so it is digital. How would I create the source files for the pass within the app?
Replies
0
Boosts
0
Views
716
Activity
Feb ’22
Details on IOS 15.4 “Tap to pay”
Hello, I couldn’t find any details on the new “tap to pay” feature on the newer iPhones. Can someone please provide some details? My main questions are: Can the iPhone 12/13 series receive payments from any payment sources with NFC (Credit/Debit cards with tap to pay, Apple Pay, Samsung Pay, Google Pay, etc.)? Where do the payments go on when receiving them; can they go to Apple Cash? Are there transaction fees? Thanks.
Replies
0
Boosts
0
Views
858
Activity
Feb ’22
How to read out several AIDs with NFC tag ISO7816 like polling (Felica)
I have a NFC-B card and it has several application identifiers. I am trying to get two AIDs using an iphone. However, I only knew how to get one AID (item0 of info.plist). I was able to get AIDs one at a time, however, I did not know how to get several AIDs at once. Would you know how to do that? According to an official documentation, it says that a system stores added queue. However, I don’t know how to get the queue. NFCTagReaderSession | Apple Developer Documentation if I can get the queue , I should be able to solve this problem. NFCReader.swift
Replies
1
Boosts
0
Views
1.1k
Activity
Feb ’22
Reply to Apple Watch NFC Tags
I can't believe this is not possible yet. This would be the most conveninet way to trigger NFC tags for HomeKit automations. Please, Apple, enable it.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to NFC Door Cards with PassKit
Apple Wallet passes use a proprietary protocol called Value Added Service which is only implemented by specific readers, usually in Point-of-Sale terminals, and very rarely in access control. Additionally, in order to use the nfc key in the pass.json file, you have to receive a special Pass Type ID certificate from Apple.
Replies
Boosts
Views
Activity
Feb ’22
MaxTransceiveLength in CoreNFC sendMiFareCommand
Hi @everybody, I'm working with NFC Tag of NXP Semiconductor: this tag is not NDEF compliant, but it is part of MIFARE Ultralight family (NFC tag type 2). All operation, both reading and writing, works well. I've just one question that concern the reading of multiple byte from memory: CoreNFC expose a method in order to retrieve the maximum lenght of payload that can be exchanged between Iphone and tag NFC? I mean, is there a command equivalent to the MaxTransceiveLength (https://docs.microsoft.com/en-us/dotnet/api/android.nfc.tech.nfca.maxtransceivelength?view=xamarin-android-sdk-12) used in Android? Here is the code used in order to read data from tag connected: tagConnected!.sendMiFareCommand(commandPacket: command) The command instead is made up in this way: [3A, 00, 42] 3Ah --> Fast Read 00h --> Start byte address 42h --> End byte address I would use the MaxTransceiveLength as maximum distance between Start byte address and End byte address.
Replies
0
Boosts
0
Views
1k
Activity
Feb ’22
Problems Updating a View
Hey everyone! While working on an app which reads the Unique Identifiers of NFC tags I ran into a problem. When I run the code the phone is able to read the tag and add the UID into an array (I checked this by making it print the array whenever the array is updated) but I am unable to make the View update. The reason this is tricky is that when you press a button on the view, it activates the reader function reader.activate() which then updates the array in the Data class only if it successfully extracted the UID. How would I make the View reload every time a new UID is added to the array? Below is the code for the content view, Data class and then the NFC reader. Thanks! View: struct ContentView: View { @StateObject var data = Data() let reader : NFCReader = NFCReader() var body: some View { NavigationView { List { Section( header: Text((data.itemCount) + Items) ) { ForEach(data.products, id: .self) { product in Text(product) } .onDelete(perform: data.deleteItem) .onMove(perform: data.move
Replies
6
Boosts
0
Views
1k
Activity
Jan ’22
Is it possible to use stored values in transit passes in my app?
I'm planning to create an integrated app that enable to show your transit fees and stations which you get on/off at. I could scratched out parts of my app that analyze and parse values that NFC bundled transit card stored. However I could not find out the way how to use some data stored in transit card of iOS Wallet app. I can see transit information in the Wallet app which I want to use, also there are some document which might shows possibility I could handle these data, https://developer.apple.com/documentation/passkit/pkstoredvaluepassproperties . I'm not really sure it is possible to use(read) these data in my iOS app via using PassKit. If you find some apps which using kind of data, could you please share me some existing app link, or tell me guides or documents which shows roughly how to use PassKit classes / methods.
Replies
0
Boosts
0
Views
430
Activity
Jan ’22
Reply to Problems updating a variable
The problem now, is that when you activate your NFCReader, it does not immediately return the tag... ...so you can not immediately assign reader.tagUID To solve this, in NFCReader we can Publish the tagCode... ...and in the View, we show this published value. Then, when NFCReader gets the tagCode, it will automatically update your SwiftUI View. Try this: import SwiftUI import CoreNFC struct ContentView: View { @StateObject private var reader = NFCReader() var body: some View { VStack{ Text(reader.tagUID) Button { reader.activate() } label: { Text(Scan) .font(.title) }.padding() } } } class NFCReader: NSObject, ObservableObject, NFCTagReaderSessionDelegate { @Published var tagUID = UID var session: NFCTagReaderSession? func activate() { self.session = NFCTagReaderSession(pollingOption: .iso14443, delegate: self) self.session?.alertMessage = Hold Your Phone Near the NFC Tag self.session?.begin() } func tagReaderSessionDidBecomeActive(_ session: NFCTagReaderSession) { print(Session Begun!) } func tagRea
Replies
Boosts
Views
Activity
Jan ’22
Reply to Updating a variable only after a function stops running
Did you consider using async / wait pattern ? Or using completion handlers ? See: h t t p s : / / w w w.raywenderlich.com/9582458-getting-started-with-core-nfc
Replies
Boosts
Views
Activity
Jan ’22
Updating a variable only after a function stops running
Hey again, I recently asked about updating a variable but now have a new problem. I am creating an NFC reader which when I press scan it prints the UID (Unique Identifier) of the NFC in a text field. When the button labeled Scan is pressed, the function activate() runs which activates the NFC reader and updates a variable within the NFCReader class called tagUID to the UID of the NFC chip. After activate() the button then changes tagCode to equal tagUID. The problem is that I want it to update only after the NFCTagReaderSession ends, as it only updates it to the previous UID scanned right now as it did not finish scanning before I update the variable. How do I do this? The code is below: struct ContentView: View { let reader: NFCReader = NFCReader() @State var tagCode = UID var body: some View { VStack{ Text(tagCode) Button { reader.activate() tagCode = reader.tagUID } label: { Text(Scan) .font(.title) }.padding() } } } struct ContentView_Previews: PreviewProvider { static
Replies
2
Boosts
0
Views
717
Activity
Jan ’22