Screen Pinning disables NFC

C Chris Wild 3 years ago
77 1 0

When I put my App into Kiosk Mode/Screen Pinning using startLockTask while I'm the device owner. Android on my TC75X stops sending NFC Events to my activities.

I think I need to allow some additional activity in DevicePolicyManager.setLockTaskPackages like I would to allow say Android settings to be available. But I have no idea what package I need to allow through.

When comparing logs with/without screenmode/device owner, the only things that stands out is the following.

D/NativeNfcTag(4452): Starting background presence check
E/NxpExtns(4452): Error Sending msg to Extension Thread

as opposed to

D/NativeNfcTag(4539): Starting background presence check
I/ActivityManager(2304): START u0 {act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=
W/ActivityManager(2304): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=

Anyone using NFC in Kiosk mode?

NOTE: It only starts going wrong after a reboot...

Chris

Please register or login to post a reply

1 Replies

F FirstName LastName

Hello,

Were you able to fix this issue? I'm currently facing the same problem and I can't seem to fix it.

JC

CONTACT
Can’t find what you’re looking for?