<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>NFCのトピックRe: App with NTAG5 problem: SecurityException: Permission Denial: Tag (  ) is out of date</title>
    <link>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1965903#M12176</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240860"&gt;@kosmo-de&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I hope I have got some about it. Here are my findings:&lt;/P&gt;&lt;P&gt;First, I will tell how I use the tag then I go to the app details:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The device is put into deep sleep;&lt;/LI&gt;&lt;LI&gt;Then, with the NFC field, I wake up the device through the harvest feature;&lt;/LI&gt;&lt;LI&gt;Then, I power the board to use the ALM, so that field connection would be less of a problem.&lt;/LI&gt;&lt;LI&gt;Therefore, the connection is stable.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now, the app part,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;if the signal is too weak you are likely to get a Tag Lost exception.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In one specific case with Samsung A50, I received Tag LostException, but when I send the command again, the tag just kept replying.&lt;/LI&gt;&lt;LI&gt;Going further, In the MainActivity when I receive the intent and then I start using the tag there, I have no problem with "out of date".&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;But If I discover the tag in the MainActivity and then use it in another Activity, then after one minute, the tag get "out of date"&lt;/LI&gt;&lt;LI&gt;Seems that the Android is tracking who receives the Intent and then only that one Activity should use it. I searched for a way to transfer the ownership of the tag but without any success. (BTW, with the Moto G phone I didn't have this problem).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In the end, if I use the tag&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the code here to build what I am doing:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/products/rfid-nfc/nfc-hf/connected-nfc-tags/ntag-5-development-kits:OM2NTX5332" target="_self"&gt;Code from NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope these ideas can help. I attached a function that you can try to study the behavior of your tag. I tested this with the A50, S23, and the Moto G stylus 2023.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2024 19:28:51 GMT</pubDate>
    <dc:creator>jpbino</dc:creator>
    <dc:date>2024-10-02T19:28:51Z</dc:date>
    <item>
      <title>App with NTAG5 problem: SecurityException: Permission Denial: Tag (  ) is out of date</title>
      <link>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1891525#M11826</link>
      <description>&lt;P&gt;I'm working on an Android Application. I tested the example code for the passthrough but I'm going over a problem.&lt;/P&gt;&lt;P&gt;My Use Case needs the phone to be put over a holder :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;There is a New Intent&lt;/LI&gt;&lt;LI&gt;I configure the passthrough&lt;/LI&gt;&lt;LI&gt;After around 1min I get the following log&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2024-06-13 10:57:37.570 System.err com.npilot W java.lang.SecurityException: Permission Denial: &lt;STRONG&gt;Tag ( ID: 00 66 21 2C 58 01 04 E0 ) is out of date&lt;/STRONG&gt;&lt;BR /&gt;2024-06-13 10:57:37.571 System.err com.npilot W at android.nfc.Tag.getTagService(Tag.java:382)&lt;BR /&gt;2024-06-13 10:57:37.571 System.err com.npilot W at android.nfc.tech.BasicTagTechnology.transceive(BasicTagTechnology.java:149)&lt;BR /&gt;2024-06-13 10:57:37.571 System.err com.npilot W at android.nfc.tech.NfcV.transceive(NfcV.java:115)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem happens on :&lt;/P&gt;&lt;P&gt;-Samsung S23 and Samsung A15 with Android 14&lt;/P&gt;&lt;P&gt;I tested also A50 ( Android 11)&amp;nbsp; and I did not have this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also had to update the SDK. The example code uses quite outdated SDK.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;minSdkVersion &lt;SPAN&gt;24&lt;BR /&gt;&lt;/SPAN&gt;targetSdkVersion &lt;SPAN&gt;34&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jun 2024 15:47:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1891525#M11826</guid>
      <dc:creator>jpbino</dc:creator>
      <dc:date>2024-06-20T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: App with NTAG5 problem: SecurityException: Permission Denial: Tag (  ) is out of date</title>
      <link>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1897914#M11887</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For TapLinx support. I would suggest you post your question on TapLinx community forum.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/TapLinx-SDK/gh-p/60564" target="_blank"&gt;https://community.nxp.com/t5/TapLinx-SDK/gh-p/60564&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 02:53:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1897914#M11887</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2024-07-03T02:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: App with NTAG5 problem: SecurityException: Permission Denial: Tag (  ) is out of date</title>
      <link>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1958616#M12154</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235306"&gt;@jpbino&lt;/a&gt; ,&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;have you got any clue or how did you resolve your problem?&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I've got similar problem with everything working on my old phone (Galaxy S21 5G Ultra) and nothing works on brand new Galaxy A34 5G.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And link, provided by &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/369"&gt;@danielchen&lt;/a&gt;, shows "Access denied". Marvelous!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Sep 2024 08:56:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1958616#M12154</guid>
      <dc:creator>kosmo-de</dc:creator>
      <dc:date>2024-09-20T08:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: App with NTAG5 problem: SecurityException: Permission Denial: Tag (  ) is out of date</title>
      <link>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1959959#M12157</link>
      <description>It seems to be just weak signal situation, first of all, check where is NFC reader located on your phone; I've got mentioned error on new phone model, where the reader itself was located under cameras' area, so then I tried to put tag to the rear side of the phone signal to communicate with tag was too weak and therefore communication could not occure properly; placing tag on the top of cameras' area did the trick and I've got no more "Tag is out of date" error</description>
      <pubDate>Mon, 23 Sep 2024 14:17:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1959959#M12157</guid>
      <dc:creator>kosmo-de</dc:creator>
      <dc:date>2024-09-23T14:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: App with NTAG5 problem: SecurityException: Permission Denial: Tag (  ) is out of date</title>
      <link>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1965903#M12176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240860"&gt;@kosmo-de&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I hope I have got some about it. Here are my findings:&lt;/P&gt;&lt;P&gt;First, I will tell how I use the tag then I go to the app details:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The device is put into deep sleep;&lt;/LI&gt;&lt;LI&gt;Then, with the NFC field, I wake up the device through the harvest feature;&lt;/LI&gt;&lt;LI&gt;Then, I power the board to use the ALM, so that field connection would be less of a problem.&lt;/LI&gt;&lt;LI&gt;Therefore, the connection is stable.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now, the app part,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;if the signal is too weak you are likely to get a Tag Lost exception.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In one specific case with Samsung A50, I received Tag LostException, but when I send the command again, the tag just kept replying.&lt;/LI&gt;&lt;LI&gt;Going further, In the MainActivity when I receive the intent and then I start using the tag there, I have no problem with "out of date".&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;But If I discover the tag in the MainActivity and then use it in another Activity, then after one minute, the tag get "out of date"&lt;/LI&gt;&lt;LI&gt;Seems that the Android is tracking who receives the Intent and then only that one Activity should use it. I searched for a way to transfer the ownership of the tag but without any success. (BTW, with the Moto G phone I didn't have this problem).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In the end, if I use the tag&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the code here to build what I am doing:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/products/rfid-nfc/nfc-hf/connected-nfc-tags/ntag-5-development-kits:OM2NTX5332" target="_self"&gt;Code from NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope these ideas can help. I attached a function that you can try to study the behavior of your tag. I tested this with the A50, S23, and the Moto G stylus 2023.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 19:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/App-with-NTAG5-problem-SecurityException-Permission-Denial-Tag/m-p/1965903#M12176</guid>
      <dc:creator>jpbino</dc:creator>
      <dc:date>2024-10-02T19:28:51Z</dc:date>
    </item>
  </channel>
</rss>

