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.
5 lines
298 B
XML
5 lines
298 B
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<uses-permission android:name="android.permission.NFC" />
|
|
<!-- Optional hardware: the app installs on non-NFC phones too. -->
|
|
<uses-feature android:name="android.hardware.nfc" android:required="false" />
|
|
</manifest>
|