I am working on a project where I aim to use an employee’s mobile device to unlock gates using NFC. The idea is that when a user taps their mobile device at an NFC reader, the device will send the required data, based on which login or logout will be triggered.
I have already implemented this functionality on Android using Host Card Emulation (HCE), and it’s working perfectly. However, I’m facing challenges with implementing the same on iOS.
Here’s my situation:
In European countries, iOS users can use HCE, but in India, HCE is not supported on iOS devices.
From my research, I found that it may be possible to use iOS HomeKit with NFC to achieve similar functionality.
I would like to know:
How can I send data to an NFC reader using iOS HomeKit or any other iOS-compatible method?
Is HomeKit the right approach, or is there any other iOS functionality that can help me achieve this?
Are there any alternatives to HCE on iOS that I can leverage, especially considering the regional restrictions on HCE?
Your guidance on this would be highly appreciated, as I am looking for a way to implement this effectively on iOS.
Thank you in advance!
Best regards,
Ravi Choudhary
Email : [email protected]
Nothing……………
2
Answers
Example code –
https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app
Example code –
Write an NDEF Message
……..
https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app