Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7043 iOS 8 Support
  3. CB-7641

[iOS 8][Camera] Newly Taken Picture Previews are Black

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.3.0
    • None
    • cordova-plugin-camera
    • iOS 8 on an iPhone 6

    Description

      When making the following call using iOS 8 on an iPhone 6 then taking a new picture, the XCode console display the error "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates." and the image preview screen becomes completely black:

      navigator.camera.getPicture(
      	function() { ... }, 
      	function() { ... }, 
      	{ 
      		quality: 40,
      		destinationType: Camera.DestinationType.DATA_URL,
      		sourceType : Camera.PictureSourceType.CAMERA,
      		allowEdit : false,
      		encodingType: Camera.EncodingType.JPEG,
      		correctOrientation: true,
      		targetWidth: 600,
      		targetHeight: 800,
      		saveToPhotoAlbum: true
      	}
      );
      

      The "Re-Take" and "Use Photo" buttons at the bottom of the screen appear and function properly though.

      I'm using the latest camera plugin code base located at: https://github.com/apache/cordova-plugin-camera

      This behavior is not occurring using the same code with iOS 7.1 on an iPhone 5.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Beagle25 Nathan Beigel
              Votes:
              9 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: