semlette / nfc_in_flutter

Cross-platform flutter plugin for reading and writing NFC tags. Not maintained anymore - not looking for new maintainer, fork instead.
MIT License
120 stars 119 forks source link

Example app crashes on IOS if the tag includes custom URL Scheme #19

Closed LeeviVesa closed 4 years ago

LeeviVesa commented 4 years ago

When the app reads the NFC tag, the Core NFC reader displays success, but the application crashes. Probably something to do with IOS 13 background tag reading.

Tested with iPhone XR, ios 13,2

semlette commented 4 years ago

Hi!

I have pushed a commit to the custom-url-fix branch. Could you try using that and see if the issue persists? You can set the nfc_in_flutter version in your pubspec.yaml to a Git branch like so:

dependencies:
  nfc_in_flutter:
    git:
      url: git://github.com/semlette/nfc_in_flutter.git
      ref: custom-url-fix
semlette commented 4 years ago

The custom-url-fix branch fixed the issue when I tried to reproduce it, so I assume it will fix it for you as well. I have released version 2.0.2 on pub.dev with the fix.