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

How to we can modify enableReaderMode in Android

Open ZainalHIS opened this issue 2 years ago • 1 comments

I have problem when I send command response is transceive failed, so in kotlin we change enableReaderMode like this private fun enableReaderMode(adapter: NfcAdapter) { val opts = Bundle() opts.putInt(EXTRA_READER_PRESENCE_CHECK_DELAY, 120000)

    adapter.enableReaderMode(
        this,
        callback,
        FLAG_READER_NFC_F or
                FLAG_READER_SKIP_NDEF_CHECK,
        opts
    )
}

the response is success, can we change the enableReaderMode in lib flutter-nfc-manager

ZainalHIS avatar Mar 04 '22 09:03 ZainalHIS

Hey,

I would also be interested in this, to use the FLAG_READER_NO_PLATFORM_SOUNDS flag.

What would be the best approach to implement this ?

Many thanks

jwadin avatar Mar 29 '22 08:03 jwadin