Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfc.makeReadOnly for iOS #409

Open
amenders opened this issue May 18, 2020 · 3 comments
Open

nfc.makeReadOnly for iOS #409

amenders opened this issue May 18, 2020 · 3 comments

Comments

@amenders
Copy link

amenders commented May 18, 2020

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

@amenders amenders changed the title makeReadOnly for iOS nfc.makeReadOnly for iOS May 18, 2020
@don
Copy link
Member

don commented Jun 19, 2020

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
Copy link

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

@chautnguyen4392
Copy link

chautnguyen4392 commented Jul 16, 2024

It's really helpful if someone can add this feature for iOS. I tried using makeReadOnly on iOS but it didn't work

2024-07-16 11:01:01.003219+0700 ERROR: Method 'makeReadOnly:' not defined in Plugin 'NfcPlugin'
2024-07-16 11:01:01.003296+0700 FAILED pluginJSON = ["NfcPlugin521038202","NfcPlugin","makeReadOnly",[]]
2024-07-16 11:01:03.619020+0700 tagReaderSession ended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants