Web NFC isn't exposed in Capacitor's WebView, so the APK needs a native writer.
Adds packages/skatespots-nfc — a local Capacitor Android plugin (Kotlin,
enableReaderMode + NDEF URL record), registered BY NAME (not bundled). lib/nfc.ts
now uses the plugin on native and Web NFC on the web. iOS can't write tags.
⚠️ UNVERIFIED (needs cap sync + a device). README documents it.
18 lines
432 B
JSON
18 lines
432 B
JSON
{
|
|
"name": "skatespots-nfc",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "SkateSpots native NFC tag writer (Web NFC isn't exposed in the Capacitor WebView). Writes only the verify URL.",
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"capacitor": {
|
|
"android": {
|
|
"src": "android"
|
|
}
|
|
},
|
|
"files": ["src", "android"],
|
|
"dependencies": {
|
|
"@capacitor/core": "^8.4.2"
|
|
}
|
|
}
|