You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter nfc_manager iOS端无法读卡,求助Info.plist第三步配置

Flutter NFC Manager iOS端读卡超时的配置修复

核心问题说明

iOS端NFC会话只会监听你在Info.plist中明确指定的卡片类型,未匹配的卡片会被系统忽略,最终触发超时。以下是两个关键参数的正确配置方式:


1. com.apple.developer.nfc.readersession.felica.systemcodes

仅针对Felica类型卡片(如日本交通卡Suica/Pasmo)配置,非Felica卡片可直接删除该键:

  • 配置格式:数组类型,填写对应Felica卡片的系统码字符串
  • 示例配置(以Suica为例):
<key>com.apple.developer.nfc.readersession.felica.systemcodes</key>
<array>
  <string>0003</string>
</array>

2. com.apple.developer.nfc.readersession.iso7816.select-identifiers

针对ISO7816标准智能卡(如银行卡、身份证、MIFARE DESFire)配置,必须填写卡片对应的AID(应用标识符):

  • 若不确定具体AID,可先用通用测试AID快速验证:A0000002471001
  • 示例配置:
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
  <string>A0000002471001</string>
</array>

额外注意事项

  • 若需支持多种卡片,可在对应数组中添加多个字符串值
  • 确保Entitlements文件中已勾选对应卡片格式的权限(如ISO7816、Felica)
  • 测试设备需为iPhone 7及以上,系统版本iOS 13+

内容的提问来源于stack exchange,提问作者mehdi08

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.24 06:52:08