[英]nfc_manager isAvailable returns false iOS
I followed this tutorial https://medium.com/flutter-community/nfc-with-flutter-f8c3515cb0e0 and still got false when calling NfcManager.instance.isAvailable
, what am I doing wrong?我按照本教程https://medium.com/flutter-community/nfc-with-flutter-f8c3515cb0e0调用NfcManager.instance.isAvailable
时仍然出错,我做错了什么?
updated capability in xcode xcode 中的更新功能
updated profile in https://developer.apple.com/account在https://developer.apple.com/account中更新了个人资料
set NFCReaderUsageDescription in info.plst在 info.plst 中设置 NFCReaderUsageDescription
I also synced my provisining profile as described here Xcode 8.3 / Xcode 9.0 Refresh provisioning profile devices .我还按照此处所述同步了我的配置文件Xcode 8.3 / Xcode 9.0 刷新配置文件设备。 Does anybody have an idea what I did wrong.有没有人知道我做错了什么。 I'm trying it on a iPhone 13 mini.我正在 iPhone 13 mini 上试用。
I managed to solve the issue… add this to your.entitlements file我设法解决了这个问题……将其添加到您的.entitlements 文件中
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>TAG</string>
</array>
and assign the right .entitlements
file to your code signing entitlements
file (runner -> Build Settings)并将正确的.entitlements
文件分配给您的code signing entitlements
文件(runner -> Build Settings)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.