Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: To access all shared projects, get information about environment setup, and view other guides, please visit Explore-In-HMOS-Wearable Index.

How to use NFC Tag

This project is a HarmonyOS smart wearable demo application designed to test NFC tag sticker detection on wearable devices. The application checks whether the target wearable device supports NFC Core and NFC Tag system capabilities, then attempts to detect nearby NFC stickers in foreground reader mode.

The main purpose of this demo is to validate whether SystemCapability.Communication.NFC.Tag can be used on a wearable device and to display basic NFC tag information such as UID and supported tag technologies. If the wearable device does not support NFC Tag capability at runtime, the application clearly shows that direct NFC sticker reading is not available on that device.

Preview

Use Cases

A user places an NFC sticker on a physical object such as a desk, gym equipment, access point, or product. When the wearable device is brought close to the sticker, the application attempts to detect the NFC tag and read its basic information.

Example scenario:

  1. The user opens the NFC Tag Wearable Demo application on the smart wearable device.
  2. The application checks NFC Core and NFC Tag system capability support.
  3. The user starts reader mode from the app.
  4. The user brings the wearable device close to an NFC sticker.
  5. If the device supports NFC Tag reading, the app detects the sticker and displays the tag UID and supported technologies.
  6. If the capability is not supported, the app informs the user that NFC Tag reading is not available on the current wearable device.

This demo can be used as a foundation for wearable-based NFC interactions such as quick task triggering, equipment identification, attendance tracking, smart environment actions, or phone-to-wearable NFC workflows.

Technology

Stack

  • Languages: ArkTS
  • Frameworks: HarmonyOS SDK 5.1.0(18)
  • Tools: DevEco Studio Version 6.0.1
  • Libraries:

Required Permissions

"ohos.permission.NFC_TAG"

Directory Structure

├───entryability
│       EntryAbility.ets
│
├───entrybackupability
│       EntryBackupAbility.ets
│
└───pages
        Index.ets

Constraints and Restrictions

Supported Devices

  • Huawei Watch 5
  • DevEco Studio Simulator

License

How to use NFC Tag is distributed under the terms of the MIT License See the license for more information.

About

NFC tag detection demo for HarmonyOS watches with capability checks, foreground reader mode and display of tag UID and supported technologies.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages