[
https://issues.apache.org/jira/browse/CB-7641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Beigel updated CB-7641:
------------------------------
Description:
When making the following call using iOS 8 on an iPhone 6 then taking a new
picture, the XCode console display the error *strong*"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:
{noformat}
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
}
);
{noformat}
The "Re-Take" and "Use Photo" buttons at the bottom of the screen appear and
function properly though.
This behavior is not occurring using the same code with iOS 7.1 on an iPhone 5.
was:
When making the following call using iOS 8 on an iPhone 6 then taking a new
picture, the XCode console display the error *strong*"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."*strong* and the image preview screen becomes completely black:
{noformat}
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
}
);
{noformat}
The "Re-Take" and "Use Photo" buttons at the bottom of the screen appear and
function properly though.
This behavior is not occurring using the same code with iOS 7.1 on an iPhone 5.
> Newly Taken Picture Previews are Black
> --------------------------------------
>
> Key: CB-7641
> URL: https://issues.apache.org/jira/browse/CB-7641
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 3.3.0
> Environment: iOS 8 on an iPhone 6
> Reporter: Nathan Beigel
>
> When making the following call using iOS 8 on an iPhone 6 then taking a new
> picture, the XCode console display the error *strong*"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:
> {noformat}
> 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
> }
> );
> {noformat}
> The "Re-Take" and "Use Photo" buttons at the bottom of the screen appear and
> function properly though.
> This behavior is not occurring using the same code with iOS 7.1 on an iPhone
> 5.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)