Git Product home page Git Product logo

Comments (5)

megaxayda avatar megaxayda commented on July 27, 2024

image
Try add this line to your app AndroidManifest.xml inside <activity>...</activity>

from smartscanner-capacitor.

rs2-davebanguilan avatar rs2-davebanguilan commented on July 27, 2024

Hi @megaxayda, android:exported="true" is already added by default in capacitor-V4.

I noticed that there is some changes on the .aar files in the feature/capacitor-v4 branch, so I removed my .aar files that came from feature/capacitor-v3 then replaced it with the files from feature/capacitor-v4. The android:exported error was gone and the application was able to build. When executing the executeScanner method from the plugin, the app crashes. There were no error logs in the capacitor level, but upon debugging using Android studio I found this:

image

Are you guys using different .aar files?

from smartscanner-capacitor.

nicholemnl avatar nicholemnl commented on July 27, 2024

Hi @megaxayda, android:exported="true" is already added by default in capacitor-V4.

I noticed that there is some changes on the .aar files in the feature/capacitor-v4 branch, so I removed my .aar files that came from feature/capacitor-v3 then replaced it with the files from feature/capacitor-v4. The android:exported error was gone and the application was able to build. When executing the executeScanner method from the plugin, the app crashes. There were no error logs in the capacitor level, but upon debugging using Android studio I found this:

image

Are you guys using different .aar files?

Woah this is similar to what happened to me,
But for me to fix this is to add this in the build.gradle

implementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false }
implementation 'com.google.zxing:core:3.3.0'

which is really weird fix.

from smartscanner-capacitor.

nicholemnl avatar nicholemnl commented on July 27, 2024

hello @rs2-davebanguilan Thank you for creating this ticket, can you try it in 0.5.0-beta.9 this issue should be fix without importing the dependencies yourself.

from smartscanner-capacitor.

rs2-davebanguilan avatar rs2-davebanguilan commented on July 27, 2024

Hi @nicholemnl. I can confirm that your solution works. I tested it on Android for both mrz and nfc-scan modes. Thank you

from smartscanner-capacitor.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.