[SOLVED] Camera plugin restart App on Android

I began to hate this issue I’ve to say…

Tried:

  • onResume like described by cordova
    a. Firstly it doesn’t work
    b. Secondly that can’t be a solution, I mean I use the camera after setRoot, push, loader slider, slide 3, load modal…what a user experience if all these have to be reload/skipped or whatever

  • I tried the MediaCapture plugin Camera plugin for android devices? as described by @rapropos, same issue

  • I tried to reduce the image quality (play with quality, targetWidth, targetHeight of the camera option). Well yes, it works, but at what price? I have to set a really shitty quality which is also not acceptable for the users. My app is a marketplace, I can’t display bad quality pictures because of an android bug/weird effect, make no sense

  • I tried to destroy some variables (in case the garbage collector would not work) to reduce the memory because I noticed that most of the time, the camera works the first time but not later on (user could take till 5 photos in my app). Didn’t worked neither

1 Like