NFC Tag Writer sample or tutorial for ios?

試著忘記壹切 提交于 2019-11-30 14:41:14

You cannot write to an NFC tag from iOS, only read. In the Core NFC documentation from Apple it's stated you can only read NFC NDEF tags, and only on iPhone 7 and 7 plus devices (assuming 8 and X are also supported)

https://developer.apple.com/documentation/corenfc

The apps you are finding in the App Store require you to use an external Bluetooth NFC reader.

Update 2019 - NDEF Write available in iOS 13

Apple just announced at WWDC that they are adding NFC witing of NDEF formatted data.

Currently (Nov. 3rd 2017) it looks like as though Apple only supports reading NFC tags. This based on the following:

However -I think it should be doable via e.g. PhoneGap, which basically is a development framework that allows you to build apps for iOS, Android etc. by using HTML5 and Javascript. Thus you have some limitations.

There is a PhoneGap-NFC Library, which seems to support reading and writing even on iOS 11.

Take a look at the book "Beginning NFC" for further instructions on building an NFC app with PhoneGap.

Hope this points in the right direction.


EDIT: sorry, the PhoneGap approach also does not support writing NFC tags on iOS - see here. There seems to be no way around it, for now, Apple natively, does not support it.

Other options to consider are of course using other devices, such as an external PC/SC Reader connected to a Mac/PC or an Android Phone to write the tags.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!