android - Emulate NDEF Tag in ReactNative for Android
问题描述
I am trying to emulate an NDEF message (NFC Forum Type 4 Tag) using ReactNative. I could not find any working source code or module to achieve this. The only working application is from Maxsoft.bg named NFC NDEF Tag Emulator which is not open source.
So far I've used react-native-nfc-manager
and react-native-nfc-hce
, but I couldn't make it work.
I also checked the android documentation but I couldn't find a working example/sourcecode there as well.
I found it really strange that I couldn't find even one working source code! So, it would be great if you could help me with a working ReactNative or Android source code.
解决方案
NDEF Message with HCE Android should provide you with the answer for Native Java for Android, the best answer also has linked a github repo with source code demo.
推荐阅读
- java - Java:如何允许在 JTextField 中按下退格键
- javascript - 在线上两点之间设置线条颜色
- r - 带有日期范围检查的表连接
- powershell - Powershell脚本,用于获取包含文件夹的文件名和文件大小的csv文件
- android - java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: 在改造中重试
- c++ - 有序数的有效稳定总和
- python - UserManager 中的 Django set_password() 方法正在保存纯文本
- javascript - 如何在 HTML 元素中显示和隐藏数组的每个项目?
- arm - 如何将 Trace32 终端视图打印到文件中?
- css - 如何设置 p-tree 的宽度以填充可用空间?