This is especially confusing when you are using a phone to test if this feature is something you want to include in a project. Your phone will possibly make a noise or vibrate as though it scanned a tag but nothing is displayed on the screen if there are no NDEF records.
An easy fix would be to display the serial number of the NFC tag, just like how Google Chrome's demo page does it.
I did look into adding this feature myself, but I found that running "npm install" did not correctly install node-sass, which appears to be unused. When I tried to install things after that, many libraries were out of date and complained, so I started bumping them to the newest versions (plus the rollup plugins are now mostly @rollup/plugin-...), but then needed to update sapper and that has not been updated in the last several years.
I dislike pull requests that aren't tested, so I finally decided that this would just be an issue instead of a fix. If this project does get updated so it cleanly installs then I would happily add the NFC changes.
This is especially confusing when you are using a phone to test if this feature is something you want to include in a project. Your phone will possibly make a noise or vibrate as though it scanned a tag but nothing is displayed on the screen if there are no NDEF records.
An easy fix would be to display the serial number of the NFC tag, just like how Google Chrome's demo page does it.
https://googlechrome.github.io/samples/web-nfc/
I did look into adding this feature myself, but I found that running "npm install" did not correctly install
node-sass
, which appears to be unused. When I tried to install things after that, many libraries were out of date and complained, so I started bumping them to the newest versions (plus the rollup plugins are now mostly@rollup/plugin-...
), but then needed to update sapper and that has not been updated in the last several years.I dislike pull requests that aren't tested, so I finally decided that this would just be an issue instead of a fix. If this project does get updated so it cleanly installs then I would happily add the NFC changes.