You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am developing an app that reads/writes information on NDEF Mime tags. The app runs without problems except when running on Android 13 devices.
On Android 13 device, when I try to write info on a tag with the CrossNFC.Current.PublishMessage(tagInfo) method, and wait for the Nfc_OnMessagePublished(ITagInfo tagInfo), I receive in the Nfc_OnMessagePublished callback an empty tagInfo.
The IsEmpty field is set to true and the Records array is empty.
However, debugging the code when writing the tag (when calling PublishMessage(tagInfo)), I checked that the tagInfo is not empty. Similarly, if I check the tag content using any NFC reader (NFC Tools Android app), the tag turns out to be correctly written.
When trying the same app on a lower Android device, the problem is not encountered.
As a workaround, I saved in a variable the written tagInfo, and used the variable instead of the callback parameter if the parameter is empty.
Steps to Reproduce
Perform a PublishMessage(tagInfo) on a tag and log the parameter of the Nfc_OnMessagePublished(ITagInfo tagInfo) callback
Check that the received tagInfo is empty (IsEmpty field is set to true and the Records array is empty).
Check that the tag is not empty with a NFC reader
Expected Behavior
Nfc_OnMessagePublished(ITagInfo tagInfo) callback method should have the tagInfo filled.
Actual Behavior
Nfc_OnMessagePublished(ITagInfo tagInfo) callback method provides an empty tagInfo (IsEmpty field is set to true and the Records array is empty).
Description
I am developing an app that reads/writes information on NDEF Mime tags. The app runs without problems except when running on Android 13 devices.
On Android 13 device, when I try to write info on a tag with the
CrossNFC.Current.PublishMessage(tagInfo)
method, and wait for theNfc_OnMessagePublished(ITagInfo tagInfo),
I receive in theNfc_OnMessagePublished
callback an emptytagInfo
.The
IsEmpty
field is set to true and theRecords
array is empty.However, debugging the code when writing the tag (when calling
PublishMessage(tagInfo)
), I checked that thetagInfo
is not empty. Similarly, if I check the tag content using any NFC reader (NFC Tools Android app), the tag turns out to be correctly written.When trying the same app on a lower Android device, the problem is not encountered.
As a workaround, I saved in a variable the written
tagInfo
, and used the variable instead of the callback parameter if the parameter is empty.Steps to Reproduce
PublishMessage(tagInfo)
on a tag and log the parameter of theNfc_OnMessagePublished(ITagInfo tagInfo)
callbacktagInfo
is empty (IsEmpty
field is set to true and theRecords
array is empty).Expected Behavior
Nfc_OnMessagePublished(ITagInfo tagInfo)
callback method should have thetagInfo
filled.Actual Behavior
Nfc_OnMessagePublished(ITagInfo tagInfo)
callback method provides an emptytagInfo
(IsEmpty
field is set to true and theRecords
array is empty).Basic Information
Screenshots
First screenshot is
tagInfo
content when callingPublishMessage(tagInfo)
.Second screenshot is
tagInfo
content received in theNfc_OnMessagePublished
callback.Reproduction Link
N/A
The text was updated successfully, but these errors were encountered: