newlogic / smartscanner-capacitor

Capacitor plugin for the SmartScanner Core library to scan MRZ, NFC and barcodes
https://www.npmjs.com/package/@idpass/smartscanner-capacitor
Apache License 2.0
10 stars 4 forks source link

Support for Capacitor v3 and up #13

Open rs2-davebanguilan opened 1 year ago

rs2-davebanguilan commented 1 year ago

Current Behaviour

Only supports Capacitor v2.

Expected Behaviour

Support for Capacitor v3 and up

Steps to Reproduce the Problem

  1. Use version 3 or 4 of capacitor
  2. Run npm i @idpass/smartscanner-capacitor
  3. Error will show that the package uses capacitor peer @capacitor/core@"^2.4.1" from @idpass/smartscanner-capacitor@0.4.5-beta

Context

Capacitor 3 info: image

Capacitor 4 info (Latest): image

rs2-davebanguilan commented 1 year ago

I was able to update it to capacitor v3. Tested the functionality in android and it works fine. I noticed that it only supports the mrz even though I changed the mode to nfc-scan . How can I change this to nfc-scan?

megaxayda commented 1 year ago

hi @rs2-davebanguilan , there is a release for v4 recently, you can try it https://github.com/newlogic/smartscanner-capacitor/releases/tag/v0.5.0-beta.6 nfc-scan should be working.

rs2-davebanguilan commented 1 year ago

Thank you @megaxayda!