chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 555 forks source link

nfc.makeReadOnly for iOS #409

Open amenders opened 4 years ago

amenders commented 4 years ago

It looks like nfc.makeReadOnly is only supported on Android - can this functionality be brought to iOS as well? https://developer.apple.com/documentation/corenfc/nfcndeftag/3075573-writelockwithcompletionhandler?language=objc

don commented 4 years ago

It looks like that iOS API could work. The trick is figuring out how to make it work with the javascript API. nfc.makeReadOnly could start a new scan session just for locking tags. Locking the tag immediately after writing would probably be preferable, but is tougher to implement because the app code loses control once the scan session starts.

philippemaillard commented 3 years ago

Dear Don,

would it be possible to add this feature for ios ? this would let me finish my project and make it works on ios as on android platform thank you for your help Philippe