Phonegap camera widget issues with iPhone 6s

0
We have a mobile app in the App store that uses the phonegap camera widget.  We are hearing from customers that they are not able to capture and image.  When they try to take a picture, the app crashes and they get a white screen that appears after they select the Use Photo selection, in addition to the white screen there is a bar at the top. When they try to take a picture, the app crashes and they get a white screen that appears.  This is occurring on the iPhone 6s.  After some troubleshooting, we found that they are able to capture an image using their front-facing cam (selfie-mode) and not rear-facing cam.  Is this an issue with the phonegap camera widget, I was wondering if the rear-facing cam captures images in a higher resolution than the front-facing cam, and if there was some limit on the image size that the phonegap camera widget can capture?  Please let me know, any suggestions would be greatly appreciated.  In the meantime, I am trying to see if we can scale down the image sizes before they are saved to our database.  We are using modeler version 6.10.5
asked
2 answers
0

Hi Monique, the rear-facing camera has 12 megapixels compared to 5mp on the front.  You can reuse the CropImage java function, to scale down the images before you save them. Hope this helps!

 

answered
0

After some research I came across the Apache Cordova issue tracker thread that contains a similar issue people have been experiencing with the phonegap camera, there are actually a couple of issues regarding this that is reported on there.  Here are the links to some below:

https://issues.apache.org/jira/browse/CB-12141?filter=-3

https://issues.apache.org/jira/browse/CB-12260?filter=-3

https://issues.apache.org/jira/browse/CB-12338?filter=-3

It seems as though this error may be related to  the statusbar overlapping the webview in the hybrid mobile app, so far it seems this is only an issue for iOS.  It seems as though there was a bug in a previous version of the cordova status bar plugin.  They say that it has been fixed and released in the 2.2.2 version.  I noticed that Mendix is using the cordova-plugin-statusbar version 2.1.3  I was wondering if updating this plugin to the latest version which is 2.2.3 and rebuilding the hybrid app again would resolve this problem.  Are there any Mendix-related restrictions that would not allow me to use this version of the plugin?  According to the README file, this plugin requires cordova 5.0+.

answered