gpt4 book ai didi

ios - iOS 上的 Flutter NFC Manager 问题

转载 作者:行者123 更新时间:2023-12-04 17:15:10 24 4
gpt4 key购买 nike

我使用 Flutter nfc_manager 只是为了在 android 中的 NFC 标签上编写 URL,它工作得很好。但在 IOS 上,它没有在标签上写任何东西,也没有显示任何错误。

在他们的 IOS 设置文档中,他们说要这样做

Add Near Field Communication Tag Reader Session Formats Entitlements to your entitlements.

Add NFCReaderUsageDescription to your Info.plist.

Add com.apple.developer.nfc.readersession.felica.systemcodes and com.apple.developer.nfc.readersession.iso7816.select-identifiers to your Info.plist as needed.

我只做了第一步和第二步。似乎第三步仅用于读取我不想在我的应用程序中使用的标签。我需要添加这第三步还有如何添加我正在使用协议(protocol)的 NFC 标签:ISO14443A

最佳答案

当我第一次实现这个时,我在开始时遇到了同样的问题,所以是的,你需要像这样在 info.plist 中添加这两件事

    <key>NFCReaderUsageDescription</key>
<string>Allow access to Create Sticker</string>
<key>com.apple.developer.nfc.readersession.felica.systemcodes</key>
<array>
<string>8005</string>
<string>8008</string>
<string>0003</string>
<string>fe00</string>
<string>90b7</string>
<string>927a</string>
<string>86a7</string>
</array>
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>A0000002471001</string>
<string>A000000003101001</string>
<string>A000000003101002</string>
<string>A0000000041010</string>
<string>A0000000042010</string>
<string>A0000000044010</string>
<string>44464D46412E44466172653234313031</string>
<string>D2760000850100</string>
<string>D2760000850101</string>
<string>00000000000000</string>
</array>

在这个协议(protocol)的 NFC 标签中:ISO14443A 也可以工作,因为我也有相同的标签并且工作正常。

编辑:保存后还运行 pod install。

关于ios - iOS 上的 Flutter NFC Manager 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68851357/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com