-1

I followed this tutorial https://medium.com/flutter-community/nfc-with-flutter-f8c3515cb0e0 and still got false when calling NfcManager.instance.isAvailable, what am I doing wrong?

updated capability in xcode enter image description here

updated profile in https://developer.apple.com/account enter image description here

set NFCReaderUsageDescription in info.plst enter image description here

I also synced my provisining profile as described here Xcode 8.3 / Xcode 9.0 Refresh provisioning profile devices. Does anybody have an idea what I did wrong. I'm trying it on a iPhone 13 mini.

quinzo
  • 580
  • 2
  • 6
  • 21

1 Answers1

0

I managed to solve the issue… add this to your .entitlements file

<key>com.apple.developer.nfc.readersession.formats</key>
    <array>
        <string>TAG</string>
    </array>

and assign the right .entitlements file to your code signing entitlements file (runner -> Build Settings)

quinzo
  • 580
  • 2
  • 6
  • 21