flutter_nfc_kit icon indicating copy to clipboard operation
flutter_nfc_kit copied to clipboard

Miissing entitlement

Open farawehassan opened this issue 2 years ago • 3 comments

I keep getting this error while polling [CoreNFC] 00000002 82c5c2d0 -[NFCTagReaderSession _connectTag:error:]:686 Error Domain=NFCError Code=2 "Missing required entitlement" UserInfo={NSLocalizedDescription=Missing required entitlement}

This is my info.plist and Runner.entitlements file Screen Shot 2022-06-13 at 11 44 44 AM

Screen Shot 2022-06-13 at 11 45 33 AM

farawehassan avatar Jun 13 '22 10:06 farawehassan

Missing entitlement checklist:

jiegec avatar Jun 13 '22 13:06 jiegec

Missing entitlement checklist:

I did all of this which is in the screenshot I shared above but I still get the error

farawehassan avatar Jun 13 '22 15:06 farawehassan

I am heaving the same error. I tried Nfc_Manager's latest version as well. Both failed on iOS with the same error. It throws an error "Missing required entitlement" while calling the .poll method.

I have verified the following things: I have enabled the capability for the app identifier in the apple developer account. Also ,Followed the check list which is provided in the ReadMe section of the plugin to add Entitlement and NFCReaderUsageDescription in info.plist.

Does anyone has figured out why it is not working yet?

vaimikpatel2908 avatar Jul 29 '22 16:07 vaimikpatel2908

Running into the same issue. Followed checklist, I also tried the example in the repository which should work without issues?

Edit: I had to add the correct AID for passports A0000002471001

SimonVillage avatar Nov 08 '22 06:11 SimonVillage

Would you please provide a minimal reproducible example?

dangfan avatar Nov 09 '22 08:11 dangfan

any update on this?

Tabarek avatar May 16 '23 05:05 Tabarek

any update on this?

On iOS, payment AIDs are currently not allowed to be polled.

  • AID 'A000000003...' is the standard first 5 bytes of a VISA payment application AID
  • If you try this with another AID (non-payment) you would be able to start the polling and transceive
  • Note that this restriction also applies to select commands send through FlutterNfcKit.tranceive()
    • A similar error would be prompted by CoreNFC when you try to do so

wonSllaB avatar May 30 '23 16:05 wonSllaB

I also encountered the same problem

I am heaving the same error. I tried Nfc_Manager's latest version as well. Both failed on iOS with the same error. It throws an error "Missing required entitlement" while calling the .poll method.

I have verified the following things: I have enabled the capability for the app identifier in the apple developer account. Also ,Followed the check list which is provided in the ReadMe section of the plugin to add Entitlement and NFCReaderUsageDescription in info.plist.

Does anyone has figured out why it is not working yet?

aliangsama avatar Apr 11 '24 08:04 aliangsama