App with NTAG5 problem: SecurityException: Permission Denial: Tag ( ) is out of date

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

App with NTAG5 problem: SecurityException: Permission Denial: Tag ( ) is out of date

49 Views
jpbino
Contributor I

I'm working on an Android Application. I tested the example code for the passthrough but I'm going over a problem.

My Use Case needs the phone to be put over a holder :

  1. There is a New Intent
  2. I configure the passthrough
  3. After around 1min I get the following log

 

2024-06-13 10:57:37.570 System.err com.npilot W java.lang.SecurityException: Permission Denial: Tag ( ID: 00 66 21 2C 58 01 04 E0 ) is out of date
2024-06-13 10:57:37.571 System.err com.npilot W at android.nfc.Tag.getTagService(Tag.java:382)
2024-06-13 10:57:37.571 System.err com.npilot W at android.nfc.tech.BasicTagTechnology.transceive(BasicTagTechnology.java:149)
2024-06-13 10:57:37.571 System.err com.npilot W at android.nfc.tech.NfcV.transceive(NfcV.java:115)


The problem happens on :

-Samsung S23 and Samsung A15 with Android 14

I tested also A50 ( Android 11)  and I did not have this issue. 

I also had to update the SDK. The example code uses quite outdated SDK.

minSdkVersion 24
targetSdkVersion 34
Tags (2)
0 Kudos
0 Replies