GithubHelp home page GithubHelp logo

Comments (12)

gustavosobral avatar gustavosobral commented on August 15, 2024 1

I think is really something related with the Samsung original camera app. I installed a new camera app (Open Camera) and it didn't crash with the plugin, even when taking 9 pictures with the same capture session.

This Open Camera workaround should be enough for my customers. Let me know if you guys need more of my input to help on this issue.

Thank you very much for all the support @janpio @martin-dufka

from cordova-plugin-media-capture.

janpio avatar janpio commented on August 15, 2024 1

I don't see any way Cordova or this plugin could do anything to help against this problem, right?

from cordova-plugin-media-capture.

janpio avatar janpio commented on August 15, 2024 1

Of course @mahdi-ninja - and even if it is just to understand the problem and possible solutions for now. We will probably not want to change the plugin completely, but based on your example maybe we can work together on finding the best solution.

from cordova-plugin-media-capture.

noveweb avatar noveweb commented on August 15, 2024 1

Any solution in 2020?

from cordova-plugin-media-capture.

janpio avatar janpio commented on August 15, 2024

Those logcat bits are strange.

Any other problems with this device?
Have you tried other apps that do similar things?
Any public reports of similar problems with the native camera app on that device/OS?

from cordova-plugin-media-capture.

gustavosobral avatar gustavosobral commented on August 15, 2024

Hi @janpio, thanks for the quick reply.

In my context, these devices are being used mainly with just my company application. So, no other problems reported so far.
What kinda similar apps I could try? Is there any demo app available that I could use?
I found online some problems with this device/OS more related with the Google Photos app, but also some people commenting that the Photos App itself crashes sometimes. :/

from cordova-plugin-media-capture.

janpio avatar janpio commented on August 15, 2024

What kinda similar apps I could try? Is there any demo app available that I could use?

Apps that allow the user to take multiple images via the native camera app, then goes back to the app after a set number of images. (No, I don't know of any myself)

The connection to limit indicates a problem with memory/RAM - or just that it is more common as longer as the app is used. Does it also crash with a limit of e.g. 3 and slow usage? (Trying to exclude the memory theory here)

from cordova-plugin-media-capture.

martin-dufka avatar martin-dufka commented on August 15, 2024

My customers report the same problem with my app. After Android autoupgrade 7.1 to 8.0 on S7, CaptureImageOptions.limit stops work. Max {limit:2} is working. I'll testing this tomorrow. I have no S7 on the table now, unfortunately.

from cordova-plugin-media-capture.

gustavosobral avatar gustavosobral commented on August 15, 2024

@janpio Yes, it also crashes with limit of 3 and slow usage. I also don't know any other Cordova app that take multiple images.

@martin-dufka Thanks for the help! I tried here with the limit of 2 and sometimes still crashes for me. The only way to stop crashing is with limit of 1 so far.

from cordova-plugin-media-capture.

martin-dufka avatar martin-dufka commented on August 15, 2024

@gustavosobral
https://developer.android.com/about/versions/oreo/android-8.0-changes

Background execution limits

... may be new behavior do this. Can you test, how long time when the camera app crashes? I still have no S7 here. :)

from cordova-plugin-media-capture.

mahdi-ninja avatar mahdi-ninja commented on August 15, 2024

I had the same issue with the latest update on Samsung Galaxy S7 (and S7 edge) on my native Android app. I tried many different things to fix it without any success.
I finally ended up creating my own camera activity class (using CameraView) which I use instead of the built-in camera.
If this (custom camera activity) is something that maintainers of this plugin are happy to add, I can submit a PR for it.

from cordova-plugin-media-capture.

mahdi-ninja avatar mahdi-ninja commented on August 15, 2024

Cool. I'll write something on the weekend.

from cordova-plugin-media-capture.

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.