How can I get the ID of an NFC tag (not the ID of the message payload) using Core NFC?
I am looking for something similiar to this function that exists in Android: https://developer.android.com/reference/android/nfc/Tag.html#getId()
How can I get the ID of an NFC tag (not the ID of the message payload) using Core NFC?
I am looking for something similiar to this function that exists in Android: https://developer.android.com/reference/android/nfc/Tag.html#getId()
The use of _foundTags will cause rejection:
1.2 Binary Rejected
Guideline 2.5.1 - Performance - Software Requirements
Your app uses or references the following non-public APIs:
_foundTags
The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.
Next Steps
If you are using third-party libraries, please update to the most recent version of those libraries. If you do not have access to the libraries' source, you may be able to search the compiled binary using the "strings" or "otool" command line tools. The "strings" tool can output a list of the methods that the library calls and "otool -ov" will output the Objective-C class structures and their defined methods. These tools can help you narrow down where the problematic code resides. You could also use the "nm" tool to verify if any third-party libraries are calling these APIs.
Resources
For information on the "nm" tool, please review the "nm tool" Xcode manual page.
If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.
Here is how you can achieve it. But keep in mind that it uses a private function, that can be removed / changed at any time by Apple, and can cause rejection from the AppStore.
Tested in my app, it works for now with iOs 11.1
The sources :
https://github.com/hansemannn/iOS11-NFC-Example/issues/16
https://github.com/chariotsolutions/phonegap-nfc/pull/287/files#diff-84fad93feff6a327c30a08cac8f546dfR171