QNearFieldManager can't dectection ?
-
Use Qt Nfc API to develop applications on IOS. The main purpose is to read and write nfc tags,
develop tools : QtCreater 9.0.3
platForm: macos ventrual
qt ver:qt 6.4.2
IOS : 16.1code :
nfm = new QNearFieldManager(this);nfcAdapterAvailable = nfm->isEnabled(); // return true if(nfcAdapterAvailable) { showUserTip("NFC Adapter is ready"); //开始监听 if(nfm->startTargetDetection(QNearFieldTarget::AnyAccess)) { showUserTip("begin detection..."); connect(nfm, &QNearFieldManager::targetDetected,this, &MainWindow::targetDetected); connect(nfm, &QNearFieldManager::targetLost,this, &MainWindow::targetLost); } else { showUserTip("detection wrong"); } } else { showUserTip("NFC Adapter not find"); }
}
question:
1、nfm->startTargetDetection(QNearFieldTarget::AnyAccess) always return false ,I can't dection,and I cant't go nextask :
Why? what will i can doIs the NFC api simply not available on IOS?
-
Use Qt Nfc API to develop applications on IOS. The main purpose is to read and write nfc tags,
develop tools : QtCreater 9.0.3
platForm: macos ventrual
qt ver:qt 6.4.2
IOS : 16.1code :
nfm = new QNearFieldManager(this);nfcAdapterAvailable = nfm->isEnabled(); // return true if(nfcAdapterAvailable) { showUserTip("NFC Adapter is ready"); //开始监听 if(nfm->startTargetDetection(QNearFieldTarget::AnyAccess)) { showUserTip("begin detection..."); connect(nfm, &QNearFieldManager::targetDetected,this, &MainWindow::targetDetected); connect(nfm, &QNearFieldManager::targetLost,this, &MainWindow::targetLost); } else { showUserTip("detection wrong"); } } else { showUserTip("NFC Adapter not find"); }
}
question:
1、nfm->startTargetDetection(QNearFieldTarget::AnyAccess) always return false ,I can't dection,and I cant't go nextask :
Why? what will i can doIs the NFC api simply not available on IOS?
@sgsm haven't used NFC on iOS yet
perhaps this can help:
https://scythe-studio.com/en/blog/nfc-in-qt-qml-application -
@sgsm haven't used NFC on iOS yet
perhaps this can help:
https://scythe-studio.com/en/blog/nfc-in-qt-qml-application@ekkescorner Thank you. Although I am prepared, I am still disappointed. I have no choice but to learn swift on xcode