[NFC Plugin] 'New Tag scanned' on specific device

Forge Component
(4)
Published on 21 Apr by Experts
4 votes
Published on 21 Apr by Experts

Hi,

I'm building an Android mobile application using NFC Plugin to read a NFC tag.

In my device - Nokia 6 and Sony Xperia, it works.

But somehow, in Samsung device like Galaxy Tab, S10, and Note 9, when tag read by my app, it open another app - could be default app for NFC for Samsung - with name "New Tag Scanned" and my data in it.

Is there any way to change this behaviour in Samsung? Because i need to store the data read in my app for further need. Samsung Galaxy tab is the device that will be used for this app.

I've read some forum about this, this behaviour caused by intent filter after NFC tag read. And in this plugin i saw a js (phonegap-nfc.js) there's a method to handle this, but looks like it doesn't work.

All of device i used is in Android 9 Version.
I'm using NFC tools to inject data (text/plain) to my tag (NXP MIFARE Ultralight).


Thanks

Solution

The problem is solved.


I've add extensibility configurations to the plugin in my app too, not just in referenced web block plugin.
So, in start up of app, if needed (any pop up showing), grant all permission. 

Solution

Hendra wrote:

The problem is solved.


I've add extensibility configurations to the plugin in my app too, not just in referenced web block plugin.
So, in start up of app, if needed (any pop up showing), grant all permission.

 

Hi, I'm facing the same problem. May you share your solution. I tried that Nfc Plugin and not worked on sumsung smartphone.

Elizeu Ferreira wrote:

Hendra wrote:

The problem is solved.


I've add extensibility configurations to the plugin in my app too, not just in referenced web block plugin.
So, in start up of app, if needed (any pop up showing), grant all permission.

 

Hi, I'm facing the same problem. May you share your solution. I tried that Nfc Plugin and not worked on sumsung smartphone.

Hi Elizeu,

I've manage to fix the problem by creating my own nfc reader based on NFC Plugin and adding extensibility configurations from NFC reader into my module also (not just in NFC reader module). And in start of app, if there's any pop up showing, grant all permission.

Maybe you can try to add the extensibility configurations first to your own module, and see if it's fix the problem.
Otherwise, i will upload my custom nfc reader and you could use or try to build your own reader based on that.

Cheers!

Hendra wrote:

Elizeu Ferreira wrote:

Hendra wrote:

The problem is solved.


I've add extensibility configurations to the plugin in my app too, not just in referenced web block plugin.
So, in start up of app, if needed (any pop up showing), grant all permission.

 

Hi, I'm facing the same problem. May you share your solution. I tried that Nfc Plugin and not worked on sumsung smartphone.

Hi Elizeu,

I've manage to fix the problem by creating my own nfc reader based on NFC Plugin and adding extensibility configurations from NFC reader into my module also (not just in NFC reader module). And in start of app, if there's any pop up showing, grant all permission.

Maybe you can try to add the extensibility configurations first to your own module, and see if it's fix the problem.
Otherwise, i will upload my custom nfc reader and you could use or try to build your own reader based on that.

Cheers!

 I will try what you said and I would apreciate so much if you upload your custom nfc reader also, as you said .

Thank you for your answer.