flutter-nfc-manager icon indicating copy to clipboard operation
flutter-nfc-manager copied to clipboard

IOS not working

Open suiebay opened this issue 3 years ago • 10 comments

Hi, I created a project and for android is working well, but with iOS i start reading nfc tags, I see the system window to scan, but nothing happens, its not working and after some seconds I get a time out and the system closes the window. Could you help me please? thanks so much

suiebay avatar Nov 09 '21 09:11 suiebay

Poor information, but It seems that your target tag type is not listed in Info.plist file.

Check the following properties:

Also check the example Info.plist in my app.

okadan avatar Nov 09 '21 10:11 okadan

Thank you for your response, but I listed all the types and did IOS Setup as here nfc_manager

Here you can see images of my info.plist file: Снимок экрана 2021-11-09 в 17 33 39

Снимок экрана 2021-11-09 в 17 33 58

Here you can see images of my XCode Capability: Снимок экрана 2021-11-09 в 17 35 26

Here you can see images of my Entitlement file: Снимок экрана 2021-11-09 в 17 36 05

When I run app on IOS Device, dialogue screen of NFC is opens but it can't read the NFC tag, but with android same tag works. Could you please help me, where problem could be?

suiebay avatar Nov 09 '21 11:11 suiebay

What is your target tag type?

If your tag type is Iso7816, you need to list the AID of that tag to read it.

okadan avatar Nov 09 '21 11:11 okadan

Could you please help me, how can I list the AID and where i can get it?

suiebay avatar Nov 10 '21 06:11 suiebay

Find an AID of ISO7816 tag yourself, then list it in com.apple.developer.nfc.readersession.iso7816.select-identifiers section in your Info.plist

okadan avatar Nov 10 '21 06:11 okadan

I added all the AIDs but still can't read, also cloned example project and run, it can read tag in Android device but not in ios :( What could be the problem?

suiebay avatar Nov 10 '21 10:11 suiebay

@suiebay could you share your project ?

redDwarf03 avatar Dec 25 '21 10:12 redDwarf03

@suiebay did you find the solution for this issue? I am also facing the same issue

rxIndrajeet avatar Mar 03 '22 09:03 rxIndrajeet

Thank you for this great project, do you have a plan to add iOs support for NfcA tags? @okadan

Hesam-Taleghani avatar Mar 27 '22 06:03 Hesam-Taleghani

@okadan:

I only have a free developer account and after some fiddling around and reading below documentation from Apple, I came to the conclusion that a PAID Apple Developer Account (ADP) is required to use NFC on IOS. Do you agree? If yes, maybe add that hint to the read me of this great plugin :-)

https://help.apple.com/developer-account/#/dev21218dfd6

Matthias

magicmatt007 avatar Apr 23 '22 08:04 magicmatt007