Search results for

nfc

1,176 results found

Post

Replies

Boosts

Views

Activity

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
851
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
993
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
708
Jan ’22
Problems updating a variable
Hey everyone! So I've been creating a program to extract the UID (unique identifier) from an NFC Tag and have been stuck on this very last problem: On the third line I created a variable which I want to be able to change called tagUID, initially just UID. If you look down to the very last line of code, you see that (if there is a connection to the tag) the last thing it's supposed to do is change the state of tagUID to whatever the UID of the tag is, but it's refusing to do so. Everything else works great its only not changing that variable! class NFCReader: NSObject, ObservableObject, NFCTagReaderSessionDelegate { @State 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 tagReaderSession(_ session: NFCTagReaderSess
3
0
1.2k
Jan ’22
NFC Door Cards with PassKit
Hello, Currently I use typical ID cards to unlock doors in my institution using NFC. I am trying to manipulate the Pass.json file to allow for NFC Door Unlocking. Here is what I think I will be using: {nfc:{message:EXAMPLE,encryptionPublicKey:EXAMPLE}} What I am trying to do is extract the NFC data from my ID card and use it for the NFC message in my Pass.json. If there is any help on how to extract this it would be greatly appreciated. Thanks
1
0
1.8k
Jan ’22