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

Expand NFC support #8

Open
DelphiWorlds opened this issue Aug 3, 2020 · 9 comments
Open

Expand NFC support #8

DelphiWorlds opened this issue Aug 3, 2020 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@DelphiWorlds
Copy link
Owner

Add reading of tag ids etc as per Brian Long's work:

http://blong.com/Articles/Delphi10NFC/NFC.htm

@DelphiWorlds DelphiWorlds added the enhancement New feature or request label Aug 3, 2020
@DelphiWorlds DelphiWorlds self-assigned this Aug 3, 2020
@samuelsoarees
Copy link

Hello my friend, you will add this feature to get the tags ids soon?

@DelphiWorlds
Copy link
Owner Author

Thanks for the reminder.. I'll have a look at doing this within the next week or so

@DelphiWorlds
Copy link
Owner Author

Oops.. bit more than a week. Looking at this before the end of the weekend

@DelphiWorlds
Copy link
Owner Author

Changes for reading tag ids have been added. Just for Android at present. Please report any issues/feedback in this issue

@samuelsoarees
Copy link

Hello my friend, i have tested this feature and worked. Thanks so much

@staa21
Copy link

staa21 commented Feb 10, 2025

Hello,
Has somebody tried to find a solution for IOS?

@DelphiWorlds
Copy link
Owner Author

It has not been implemented in Kastri, however it appears it will be possible,

@DelphiWorlds DelphiWorlds reopened this Feb 10, 2025
@staa21
Copy link

staa21 commented Feb 10, 2025

I have tried to find a solution for this and extended the following procedure in dw.nfc.ios:
procedure TPlatformNFCReader.readerSessionDidDetectNDEFs(session: NFCNDEFReaderSession; didDetectNDEFs: NSArray);

the following code lead to a crash:
var p:Pointer;
p:=session.valueForKey(StrToNSStr('_foundTags'))
Any idea how to access the session and the found tags in it?
My idea is to get the tagid such as in this post:
https://stackoverflow.com/questions/45946443/how-to-get-the-tag-identifier-in-core-nfc

@DelphiWorlds
Copy link
Owner Author

My idea is to get the tagid such as in this post:

As per that post, the code they're using may be rejected by Apple. I am looking at other code in order to implement this.

For my own reference (and perhaps others who are interested), I am looking at these examples:

semlette/nfc_in_flutter#69
https://medium.com/@lrunhem/detect-nfc-tags-on-ios-13-bd43dcf68a4e

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

No branches or pull requests

3 participants