Amy Johnson created CB-11812:
--------------------------------

             Summary: Apache Cordova-plugin-camera working only about 1/3 of 
time & very slow on iPhones 4s & 5c
                 Key: CB-11812
                 URL: https://issues.apache.org/jira/browse/CB-11812
             Project: Apache Cordova
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: iOS, Plugin Camera
         Environment: iPhone 4s, 5c
            Reporter: Amy Johnson
            Priority: Critical


Cordova app has cordova-plugin-camera .  When called from app on iPhone 4s or 
5c, only works about 1/3 of the time. Even then, takes 5-6 seconds to respond.

This is original javascript code:

var onDeviceReady;

onDeviceReady = function() {
  console.log(navigator.camera);
};

document.addEventListener('deviceready', onDeviceReady, false);

exports.takePicture = function(success, error) {
  if (!navigator.camera) {
    error();
    return;
  }
  console.log("About to take picture");
  return navigator.camera.getPicture(success, error, {
    quality: 80,
    destinationType: Camera.DestinationType.FILE_URI
  });
};

exports.hasCamera = function() {
  return navigator.camera != null;
}; 





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to