Releases: semlette/nfc_in_flutter
v2.0.5
v2.0.4
- CoreNFC is now a
weak_framework. This should fix a crash on iOS devices that doesn't support NFC. (#28 by @mxpazyj) - Added
alertMessageargument toreadNDEF(). This controls the message on the iOS NFC modal. (#25 by @dghilardi) - Actually fixed
NDEFRecord.languageCodebeing ignored when writing (what v2.0.3 tried to, but failed) - Support for reading and writing to empty tags on Android (#24)
- Fixed CoreNFC crashing after cancelling reading multiple times in a row (#29 (comment) by @martyfuhry)
v2.0.3
v2.0.2
v2.0.1
- Fixed writing TNF text records on iOS (credit to @janipiippow)
v2.0.0
- Added
noSoundsflag toNFCNormalReaderMode
On Android, this tells the system not to play sounds when a NFC chip is scanned.
- Support for writing NDEF messages has been added
Get acccess to tags using the new .tag property on messages, which you can
use to connect and write to tags.
- Added the following methods for constructing NDEF messages:
NDEFRecord.empty for empty records
NDEFRecord.plain for text/plain records
NDEFRecord.type for records with custom types
NDEFRecord.text for records with well known text types
NDEFRecord.uri for records with well known URI types
NDEFRecord.absoluteUri
NDEFRecord.external
NDEFRecord.custom
-
COULD BE BREAKING: Records with type T and U (with well known TNF) will
now be correctly constructed. URI records will have the URL prefix added to the
.payloadand Text records will now correctly have thr first prefix byte removed from the.payload. If you want the precise value, you can use the new.dataproperty which excludes the URL prefix of URI records and language codes of Text records. -
Added
.dataproperty toNDEFRecordwhich excludes URL prefixes and
language codes from records with well known types. -
Added
.languageCodeproperty toNDEFRecordwhich will contain the language
code of a record with a well known text type. -
Updated the
.tnfproperty onNDEFRecords. This is now an enumerable
(NFCTypeNameFormat) with it's value mapped to the correct TNF value.
This works on both Android and iOS where as it previously did not.
v1.2.0
v1.1.1
v1.1.0
First release
First release, woohoo!
- Support for reading NDEF formatted NFC tags on both Android and iOS