I am trying to use the new NFCVASReaderSession
API on iOS 13 beta using an iPhone XR.
NFCVASReaderSession.readingAvailable
is returning false, but when I call session.begin()
it launches the scan UI.
A couple of questions: Is there additional entitlements needed for this to work?? Or should these work?.
I have NFC enabled Apple Wallet VAS passes and have configured the NFCVASReaderSession
to target the correct passTypeIdentifier
but to no avail. Is this supposed to work with NFC enabled Apple Wallet passes or does anybody have any theories about what it is for?
let config = NFCVASCommandConfiguration(vasMode: .normal, passTypeIdentifier: passTypeIdentifier, url: nil)
session = NFCVASReaderSession(vasCommandConfigurations: [config], delegate: self, queue: nil)
session?.alertMessage = "Hold your iPhone near the VAS pass."
session?.begin()