Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nfc_OnMessagePublished callback has empty tagInfo #129

Open
giovanelli-michele opened this issue Feb 2, 2023 · 0 comments
Open

Nfc_OnMessagePublished callback has empty tagInfo #129

giovanelli-michele opened this issue Feb 2, 2023 · 0 comments

Comments

@giovanelli-michele
Copy link

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 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

  1. Perform a PublishMessage(tagInfo) on a tag and log the parameter of the Nfc_OnMessagePublished(ITagInfo tagInfo) callback
  2. Check that the received tagInfo is empty (IsEmpty field is set to true and the Records array is empty).
  3. 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).

Basic Information

  • Version with issue: Latest 0.1.26
  • Last known good version: N/A
  • IDE: Visual Studio 2022
  • Platform Target Frameworks:
    • Android: Android 13 (SDK 33)
  • Nuget Packages: Latest 0.1.26
  • Affected Devices: Samsung S20, Samsung S22, Samsung S22 Ultra, Samsung S20 FE

Screenshots

First screenshot is tagInfo content when calling PublishMessage(tagInfo).

Second screenshot is tagInfo content received in the Nfc_OnMessagePublished callback.

image

image

Reproduction Link

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant