【发布时间】:2017-05-31 10:18:00
【问题描述】:
我按照说明设置 NFC 以在 Android 上启动我的应用。标签中的第一条记录是我网站的网址。前任。例子.com
AndroidManifest.xml 文件具有以下意图过滤器:
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<data android:host="example.com" android:scheme="http" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
但无论出于何种原因,当我扫描标签时,Android 浏览器会打开,而不是我的应用程序。 nfc 的 Android 文档似乎没有任何额外的步骤 https://developer.android.com/guide/topics/connectivity/nfc/nfc.html
不管怎样,我正在使用 Apache Cordova 和 phonegap-nfc 插件。
【问题讨论】: