You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Amy Johnson (JIRA)" <ji...@apache.org> on 2016/09/06 18:51:20 UTC

[jira] [Created] (CB-11812) Apache Cordova-plugin-camera working only about 1/3 of time & very slow on iPhones 4s & 5c

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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org