Qt NFC Overview▲
With the Qt NFC API typical use cases are:
-
Detecting NFC tags.
-
Reading and writing NDEF messages.
-
Registering NDEF message handlers.
-
Sharing files and messages.
The following sections describe how to use Qt NFC C++ classes and QML types for the above use cases.
On Android, the detection of new NFC tags only works in foreground applications. Android services do not support this because of API limitations on the Android side. The only way to use a Tag in a service is to provide an AIDL interface accepting the Tag and forward it to Qt as shown in the following example.