After having reviewed the information from the WWDC2019 Key Note on the NFC API
~ https://developer.apple.com/videos/play/wwdc2019/715/
I've been experimenting with the Sample NFC-Project as found at
~ https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app
I've just been focusing on Read/Write of NDEF-Formatted-Tags,
~ using NFCNDEFReaderSession, NFCNDEFReaderSessionDelegate, NFCNDEFTag, NFCNDEFMessage, and their related methods and properties
and ISO7816-Native-Tags
~ using NFCTagReaderSession, NFCTagReaderSessionDelegate, NFCTag
I've had general success with API's for both technologies, but I would like to know if and how i can use the
NFCTagCommandConfiguration class
~ https://developer.apple.com/documentation/corenfc/nfctagcommandconfiguration
with those API's?
I'm specifically interested in its maximumRetries and retryInterval properties.
An example use case for me is with the Delegate-Callback for when the Reader-Session has invalidated
~ tagReaderSession(_ session: NFCTagReaderSession, didInvalidateWithError error: Error)
Depending on what the Error was (exceptions and/or read/write issues specifically),
I'll automatically restart a new NFCTagReaderSession after waiting a short interval.
This has the effect of making the "NFC-Modal" displayed on the IOS-Device to bounce in and out
a number of times before it finally succeeds without error.
So I'm interested in whether I can somehow leverage NFCTagCommandConfiguration
to more better handle automatic retries on Scan errors.