capawesome-team / capacitor-nfc

⚡️ Capacitor plugin for reading and writing NFC tags.
https://capawesome.io/plugins/nfc/
MIT License
72 stars 14 forks source link

bug: Android application fails to launch using capacitor 4.0.1 and next version of plugin #1

Closed lte-deankier closed 2 years ago

lte-deankier commented 2 years ago

Plugin version:

0.0.1-dev.497102e.1660326274

Platform(s):

android

Current behavior:

application terminates before completing launch. application built using Ionic Appflow

Expected behavior:

application starts and NFC plugin is available

Steps to reproduce:

Updated demo app to Capacitor

  1. upgrade capacitor core and base plugins to 4.0.1
  2. update plugin to next version
  3. run npx cap sync
  4. commit changes
  5. push to repository
  6. Appflow builds app

Related code:

presence of plugin is enough to cause termination

Other information:

Specifically tested on Samsung S20+ Android 12

Happens with cordova phonegap-nfc plugins as well. Adding a plugin for NFC with Capacitor 4.0.1 causes the crash. Does not require code to use the plugin.

Same code executes fine with Capacitor 3.X

Capacitor doctor:

   Capacitor Doctor   

Latest Dependencies:

  @capacitor/cli: 4.0.1
  @capacitor/core: 4.0.1
  @capacitor/android: 4.0.1
  @capacitor/ios: 4.0.1

Installed Dependencies:

  @capacitor/cli: 4.0.1
  @capacitor/android: 4.0.1
  @capacitor/core: 4.0.1
  @capacitor/ios: 4.0.1

[success] Android looking great! 👌
[error] Xcode is not installed
robingenz commented 2 years ago

Thank you for your request. I'll take a look at it and try to reproduce the issue.

lte-deankier commented 2 years ago

If there is anything else I can provide, please let me know.

robingenz commented 2 years ago

@lte-deankier The problem should be fixed now. Feel free to try the following version:

npm i @capawesome-team/capacitor-nfc@0.0.1-dev.3aa997a.1660764298

This version is also available via the next tag.

robingenz commented 2 years ago

Note: I updated the version in my comment.

lte-deankier commented 2 years ago

Perfect, thank you