如何在 android studio 中使用 NFC 实现 google 即时应用程序

how to implement google instant app with NFC in android studio

我想在 android 工作室中点击 nfc 标签时 运行 即时应用程序。目前我的简单即时应用程序在调用 NFCAdapter 时崩溃了。

免安装应用目前无法访问 NFC 硬件。 Instant Apps 支持的权限列表可以找到 here and you can see that the android.permission.NFC 不支持。

如果您想在点击 NFC 标签时触发您的即时应用程序,那么如果您将支持即时应用程序的 URL 绑定到标签上,这应该会起作用。当访问该标签并且系统打开 URL 时,Instant App 应该触发。