4 Replies Latest reply on Dec 22, 2016 6:30 AM by lab6.net

    camera plugins not working correctly on ios

    lab6.net Level 1

      I have an app that allows to take photos, normally im using cordova-plugin-camera for that job. Everything was working just fine like month ago. Now when i'am trying to take photo, nothing happens.


      I noticed that when i just put app in the background and then open it again, camera will show up and i'm able to take that photo.


      I changed my code to use navigator.device.capture.captureImage() but that didn't fix the problem. The app still doesnt show camera, and when i put it into background, it crashes.


      For cordova-plugin-camera im using 2.3.1 version, and i included required strings like that:


      <plugin name="cordova-plugin-camera" source="npm" spec="~2.3.1">

              <param name="CAMERA_USAGE_DESCRIPTION" value="*** my description ***" />

              <param name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="*** my description ***" />