[英]how to implement google instant app with NFC in android studio
i want to run instant app when tapping nfc tag in android studio. 我想在android studio中点击nfc标签时运行即时应用程序。 currently my simple instant app is crash when calling NFCAdapter.
目前,我的简单即时应用程序在调用NFCAdapter时崩溃。
Instant Apps cannot currently access NFC hardware. Instant Apps当前无法访问NFC硬件。 The list of permissions supported by Instant Apps can be found here and you can see that the
android.permission.NFC
is not supported. 您可以在此处找到Instant Apps支持的权限列表,并且可以看到不支持
android.permission.NFC
。
If you want to trigger your Instant App when a NFC tag is tapped, that should work if you tie an Instant App-enabled URL to a tag. 如果要在轻按NFC标签时触发Instant App,则将已启用Instant App的URL绑定到标签上应该可以工作。 When that tag is accessed and the URL opened by the system, the Instant App should trigger instead.
当访问该标签并由系统打开URL时,Instant App应该触发。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.