I want To implement sharing NFC Tag without opening App like passing from airport with passport

437 views Asked by At

I want to implement an App to make user able to share specific data to a reader device without opening my App like applepay, googlepay airport passing passport

2

There are 2 answers

3
Duncan C On

I suggest reading Apple's docs on "Core NFC", the library that implements NFC in iOS.

I don't think you can do what you are asking to do. (You can't transmit an RFC tag while your app is suspended/quit or the phone is locked.)

A quick glance at those docs says that you can add support for background tag reading, and then have the "reader" start out by transmitting as an NFC tag. That would let you display a notification. Once the user taps the notification your app could be launched and notified. See the section titled "Adding Support for Background Tag Reading."

2
Andrew On

If the reader is only a true reading device and the only thing it expects to do is to read a NFC Tag (or a device pretending to be an NFC Tag, as in the case of your applepay, googlepay example).

Then on iOS what you want to do is not possible by you, Apple only allow themselves to do this.

On Android which has better NFC support it is possible to write a Host Card Emulation service that will run in the background that will pretend to be a NFC Tag. see the docs https://developer.android.com/guide/topics/connectivity/nfc/hce