用于卡仿真的CoreNFC? [英] CoreNFC for card emulation?

查看:207
本文介绍了用于卡仿真的CoreNFC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CoreNFC在iOS 11 SDK中引入.可以将CoreNFC用于iOS上的智能卡仿真吗? CoreNFC的Apple文档

CoreNFC is introduced in iOS 11 SDK. can CoreNFC be used for Smart Card emulation on iOS? Apple Documentation of CoreNFC

推荐答案

对于智能卡仿真,我们需要通过NFC模块发送卡的数据(例如PAN,CVV2等). 根据Apple的文档,CoreNFC仅允许NFC模块读取类型为1到5的NFC标记,其中包含NFC数据交换格式(NDEF)的数据.

For Smart Card Emulation we need to send card's data (like PAN, CVV2, ...) through NFC module. According to Apple's Documentation CoreNFC only allows NFC module to read Near Field Communication (NFC) tags of types 1 through 5 that contain data in the NFC Data Exchange Format (NDEF).

所以现在看来​​答案是否定的.

So it seems the answer is NO at the moment.

您的应用程序可以读取标签,以向用户提供有关其物理环境和其中的现实世界对象的更多信息.例如,您的应用可能会向用户提供有关他们在商店中找到的产品或他们在博物馆参观的展览的信息.

Your app can read tags to give users more information about their physical environment and the real-world objects in it. For example, your app might give users information about products they find in a store or exhibits they visit in a museum.

使用核心NFC,您可以读取类型1到5的近场通信(NFC)标签,其中包含NFC数据交换格式(NDEF)的数据.要读取标签,您的应用会创建NFC NDEF阅读器会话并提供委托.运行中的阅读器会话轮询NFC标签,并在找到包含NDEF消息的标签时调用委托,并将消息传递给委托.委托可以读取消息并处理可能导致会话无效的条件.

Using Core NFC, you can read Near Field Communication (NFC) tags of types 1 through 5 that contain data in the NFC Data Exchange Format (NDEF). To read a tag, your app creates an NFC NDEF reader session and provides a delegate. A running reader session polls for NFC tags and calls the delegate when it finds tags that contain NDEF messages, passing the messages to the delegate. The delegate can read the messages and handle conditions that can cause a session to become invalid.

Apple的CoreNFC文档

这篇关于用于卡仿真的CoreNFC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆