When you successfully finish an NFC
reading session you'll see something like that:
This will overlay the currently presented ViewController
for about 3 seconds. The fun part is that this behaviour is inconsistent since this window will disappear immediately if the reading session finish very fast.
It means that I cannot be sure about how long will this overlay stay for sure which is bad for our app's UX design.
The question is simple: is there a way to force this overlay to disappear or at least to handle the event of when it disappears (not when the NFC
session if finished)?
RxSwfit
.observeOn(MainScheduler())
. Moreover, the behaviour is consistent as I mentioned: if the reading session is finished very fast (in < 0.5 sec) this system alert is dismissed immediately. Any time the session is longer - this alert is presented for about 3 seconds (always the same time, not different) before being dismissed. – KarleeNFCNDefReaderSession
? Try this and see if you get the same behaviour; github.com/hansemannn/iOS11-NFC-Example – FiddlingNFCNDefReaderSession
so it chooses some background queue (not main) under the hood but I observe the results on the main queue. – Karlee