标签: core-nfc

iOS 13、CoreNFC。NFCError Code=100“堆栈错误”是什么意思?

我想使用 coreNFC 读取 eChip(UKR 生物识别国际护照)中的信息

我有配备 iOS13 beta3 和 XCode 11.0 beta 3 的 iPhone。当我扫描护照时,我设法得到了委托方法的响应:


    func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag])

Run Code Online (Sandbox Code Playgroud)

但是当我打电话时:

session.connect(to: tag)
Run Code Online (Sandbox Code Playgroud)

我收到错误:

[CoreNFC] 00000002 83bfcc80 -[NFCTagReaderSession _connectTag:error:]:553  Error Domain=NFCError Code=100 "Stack Error" UserInfo={NSLocalizedDescription=Stack Error, NSUnderlyingError=0x281bb0240 {Error Domain=nfcd Code=28 "Tag Not Found" UserInfo={NSLocalizedDescription=Tag Not Found}}}
Run Code Online (Sandbox Code Playgroud)

这是我创建会话的方法

    @IBAction func buttonPressed() {

        guard NFCTagReaderSession.readingAvailable else {
            let alertController = UIAlertController(
                title: "Scanning Not Supported",
                message: "This device doesn't support tag scanning.",
                preferredStyle: .alert
            )
            alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: …
Run Code Online (Sandbox Code Playgroud)

ios swift core-nfc

6
推荐指数
0
解决办法
3794
查看次数

Reading UIDs of NFC Cards in iOS 13

I would like to retrive the UID of MiFare cards. I'm using an iPhone X, Xcode 11 and iOS 13.

I'm aware this wasn't possible (specifically reading the UID) until iOS 13 according to this website: https://gototags.com/blog/apple-expands-nfc-on-iphone-in-ios-13/ and this guy: https://www.reddit.com/r/apple/comments/c0gzf0/clearing_up_misunderstandings_and/

The phones NFC reader is correctly detecting the card however the unique identifier is always returned as empty or nil. I can read the payload however and irrelvant to iOS but I can do this in Android (confirms the …

nfc ios mifare core-nfc

5
推荐指数
1
解决办法
1105
查看次数

NFC iOS:无通知读取NFC标签

当我在应用程序处于后台时读取 NFC 标签时,会出现一条通知。我已将 URL 方案数据myurl://...写入 NFC 标签。因此,当我点击通知时,我的应用程序将打开并根据有效负载采取必要的操作。

但是,当我的应用程序在前台时,仍然会出现通知。而且,我必须点击通知才能在应用程序上执行操作。

我可以在没有默认 NFC 读取面板和通知的情况下直接读取 NFC 标签吗?

在此处输入图片说明

ios core-nfc ios13

5
推荐指数
0
解决办法
1351
查看次数

使用私有 API 在 iOS 上进行主机卡模拟?

我想知道如何在 iOS 上进行主机卡模拟。很明显,这通过 CoreNFC 是不可能的(至少不能通过公开暴露的 API),但我想知道是否可以通过不直接暴露的私有 API 实现。

我见过的最接近的是这个越狱调整,http://cydia.saurik.com/package/net.limneos.nfcwriterx/。不幸的是,这种调整用于实现 HCE 的方法尚不清楚。

想知道是否有任何研究或已知的 API 可以通过 CoreNFC 在 iOS 上执行 HCE?

iphone nfc ios hce core-nfc

5
推荐指数
0
解决办法
1057
查看次数

如何在 Xcode 更新后修复核心 NFC 框架的无效权利

我创建了一个具有 NFC 标签读取功能的应用程序。我对其进行了一些更改并将新版本上传到 App Store。一切正常,直到上周我将 Xcode 更新到 11.1。现在,当我存档它时,我有以下错误提示。

“核心 NFC 框架的权利无效。SDK 版本“13.1”和最低操作系统版本“11.0”与权利“com.apple.developer.nfc.readersession.formats”不兼容,因为权利中缺少 TAG。

我已经对我的 info.Plist 文件进行了以下更改,但错误仍然存​​在。任何帮助将不胜感激。

Plist 更改

<key>com.apple.developer.nfc.readersession.formats</key>
<array>
    <string>NDEF</string>
    <string>TAG</string>
</array>
Run Code Online (Sandbox Code Playgroud)

ios swift core-nfc ios13 xcode11

4
推荐指数
1
解决办法
1410
查看次数

使用CoreNFC检测ISO/IEC 14443(Mifare Ultralight或Classic)NFC卡

所以我在WWDC,能够使用以下代码检测Apple Labs提供的NFC卡:

nfcSession = NFCNDEFReaderSession(delegate: self, queue: nil, invalidateAfterFirstRead: false)
nfcSession.begin()
Run Code Online (Sandbox Code Playgroud)

和委托方法:

func readerSession(_ session: NFCNDEFReaderSession, didInvalidateWithError error: Error) {
    DispatchQueue.main.async {
        print("Error:" + error.localizedDescription)
    }
}

func readerSession(_ session: NFCNDEFReaderSession, didDetectNDEFs messages: [NFCNDEFMessage]) {
    print("Did detect NDEFs.")
    for message in messages {
        for record in message.records {
            print(record.identifier)
            print(record.payload)
            print(record.type)
            print(record.typeNameFormat)
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

但是,我想在ISO/IEC 14443协议下检测Mifare Ultralight(或经典)卡.

每当我获得扫描视图时,都没有任何反应.也不会调用错误回调或成功块.有没有办法读这张卡?

非常感谢!

nfc ios mifare swift core-nfc

3
推荐指数
1
解决办法
3755
查看次数

在 IOS 编码上写入 NFC NDEF

我正在开发一个 Flutter 应用程序,它可以读取和写入 NFC 标签。在Android上它工作得很好。现在我正致力于在 IOS 上实现 NFC 写入,因为它现在可用。

我确实让应用程序将文本记录写入标签。但不知何故,它是用 UTF16 编写的,这让事情分崩离析。

如何使用 UTF-8 编码的字符串创建 NFCNDEFPayload.wellKnownTypeTextPayload?

ios flutter core-nfc

3
推荐指数
1
解决办法
1253
查看次数

如何隐藏或更改 NFC 标签检测之前出现的弹出窗口?

是否可以在没有默认 PopUp 的情况下检测CoreNFC标签?如果不 ?我可以更改其中的图标或以某种方式修改该 PopUp 吗?

我正在使用目标c。

提前致谢

iphone objective-c nfc ios core-nfc

1
推荐指数
1
解决办法
2483
查看次数

标签 统计

core-nfc ×8

ios ×8

nfc ×4

swift ×3

ios13 ×2

iphone ×2

mifare ×2

flutter ×1

hce ×1

objective-c ×1

xcode11 ×1