Socket
Book a DemoInstallSign in
Socket

nfcutils

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nfcutils

Capacitor plugin providing NFC functionalities

latest
Source
npmnpm
Version
0.2.4
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

NFCUtils - plugin for Capacitor

Capacitor plugin providing NFC functionalities

Supported Platforms

  • ✅ Android
  • ❌ iOS (not yet implemented)
  • 🚫 Web/PWA (not supported, see: Web NFC API )

NFC Tag Technologies

  • NDEF
  • MifareUltralight

Install

npm install nfcutils
npx cap sync

Permissions

Android

AndroidManifest.xml

<uses-permission android:name="android.permission.NFC" />

API

addListener('nfcScanned', ...)

addListener(eventName: 'nfcScanned', listenerFunc: (event: NFCScannedEvent) => void) => Promise<PluginListenerHandle>

Listen for a scanned NFC event

ParamType
eventName'nfcScanned'
listenerFunc(event: NFCScannedEvent) => void

Returns: Promise<PluginListenerHandle>

addListener('scanError', ...)

addListener(eventName: 'scanError', listenerFunc: (event: ScanErrorEvent) => void) => Promise<PluginListenerHandle>

Listen for a scan error event

ParamType
eventName'scanError'
listenerFunc(event: ScanErrorEvent) => void

Returns: Promise<PluginListenerHandle>

startReading()

startReading() => Promise<void>

Start listening for NFC read

stopReading()

stopReading() => Promise<void>

Stop listening for NFC read

isSupported()

isSupported() => Promise<{ supported: boolean; }>

Check if NFC is supported

Returns: Promise<{ supported: boolean; }>

removeAllListeners()

removeAllListeners() => Promise<void>

Removes all listeners.

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

NFCScannedEvent

Scanned NFC contents

PropType
datastring
tagInfo{ id: string; type: string; }

ScanErrorEvent

Scan error

Keywords

capacitor

FAQs

Package last updated on 22 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts