Giter VIP home page Giter VIP logo

Comments (13)

gitschwarz avatar gitschwarz commented on August 18, 2024 1

Sorry no - not fast ...perhaps in 2 months or so ...
I'm familiar with linux and bash and so ...

from barcode-to-pc-app.

fttx avatar fttx commented on August 18, 2024

Hello,

perhaps the smartphone is still running the old version. The IMAGE component was introduced in v4.5.0, can you check it in the app info page as well?

from barcode-to-pc-app.

gitschwarz avatar gitschwarz commented on August 18, 2024

yes it's 4.5.0 on the smartphone
(and no scan session was created)

from barcode-to-pc-app.

fttx avatar fttx commented on August 18, 2024

Ok, I'm not sure why this is happening, perhaps the app is not loading the correct output template, can you try to add something like a STATIC TEXT component just to make sure it is loading a new template?

Also, could you also check if the app has some disabled permission in the app info settings?

Thank you

from barcode-to-pc-app.

gitschwarz avatar gitschwarz commented on August 18, 2024

Ok - I checked again with a new template, a barcode scan and text components and the image component
That all work until the image-component should starting - then the template breaks and no scan session were created.
The app permissions are ok (barcode scan work well ...).
Is there any camera-lib, that isn't included in lineageos ?

from barcode-to-pc-app.

gitschwarz avatar gitschwarz commented on August 18, 2024

Tomorrow I test this feature with Iphone and other android phone ...

from barcode-to-pc-app.

fttx avatar fttx commented on August 18, 2024

You're right it may be the cause of the issue.

From the plugin source code I see that it launches the native/stock camera: https://github.com/apache/cordova-plugin-camera/blob/84166f63554903564c9791541ce6f168930a9a61/src/android/CameraLauncher.java#L312

perhaps lineageos includes a camera with a different package name and it is not able to launch it

from barcode-to-pc-app.

gitschwarz avatar gitschwarz commented on August 18, 2024

I think the problem is the packetmanager:
"PackageManager mPm = this.cordova.getActivity().getPackageManager();"

Thank you for your time and support.

from barcode-to-pc-app.

gitschwarz avatar gitschwarz commented on August 18, 2024

I browsed many site about cordova https://github.com/apache/cordova-plugin-camera/issues?q=camera and the camera-plugin. It seems that camera plugin doesn't work every time and it is not stable everytime ...
One Solution :-) :
"I change the plugin. Now I use https://github.com/apache/cordova-plugin-media-capture."

from barcode-to-pc-app.

fttx avatar fttx commented on August 18, 2024

Thanks for the information, can you make a pull request with the changes? I'll be glad to change it also in the official version

ionic docs: https://ionicframework.com/docs/v3/native/media-capture/

from barcode-to-pc-app.

fttx avatar fttx commented on August 18, 2024

Sorry, but where you able to run it using the other plugin? If yes how did you convert the output to base64?

Another user reported a similar issue on a Motorola G5 Plus, is it the same smartphone as yours?

Thank you

from barcode-to-pc-app.

Related Issues (20)

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.