flutter-nfc-manager icon indicating copy to clipboard operation
flutter-nfc-manager copied to clipboard

Prevent reoccurring scans during tag handling

Open philitell opened this issue 2 years ago • 0 comments

When my flutter-app is in foreground it is always possible to scan a nfc-tag. This mean the nfc-session is started when the app launches and it is always active. When a tag is scanned and it is Ndefformatable then i want do display a dialog to let the user confirm to format the tag with a new ndef-message. How can i disable the nfc-scan (the system sound and vibration) during handling a tag? I already implemented a lock (semaphore) to avoid reentering the onDiscovered-method. But how can i disable the sound and vibration? Or is there another way to deactivate nfc-scans during onDiscovered-method is executed?

philitell avatar Aug 01 '23 11:08 philitell