[
https://issues.apache.org/jira/browse/CB-8234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah updated CB-8234:
---------------------------------
Description:
I get following error while I am taking the photo from iPhone camera.
"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."
My platform details. IOS 8.1.2, cordova 3.5,iPhone 6 Plus
Please update the camera plugin as early as possible.
Please refer the following JavaScript code.
{code}
navigator.camera.getPicture(onSuccess, onFail, {
quality:100,
destinationType:
Camera.DestinationType.FILE_URI,
sourceType:
Camera.PictureSourceType.PHOTOLIBRARY,
encodingType: Camera.EncodingType.JPEG,
targetWidth:960,
targetHeight:640
});
function onSuccess(imageURI){
console.log(imageURI);
}
function onFail(){
alert("Fail");
}
{code}
was:
I get following error while I am taking the photo from iPhone camera.
"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."
My platform details. IOS 8.1.2, cordova 3.5,iPhone 6 Plus
Please update the camera plugin as early as possible.
Please refer the following JavaScript code.
navigator.camera.getPicture(onSuccess, onFail, {
quality:100,
destinationType:
Camera.DestinationType.FILE_URI,
sourceType:
Camera.PictureSourceType.PHOTOLIBRARY,
encodingType: Camera.EncodingType.JPEG,
targetWidth:960,
targetHeight:640
});
function onSuccess(imageURI){
console.log(imageURI);
}
function onFail(){
alert("Fail");
}
> IOS phonegap camera gives empty snapshot result in IOS 8.1 on iPhone 6
> /iPhone 6 plus.
> ---------------------------------------------------------------------------------------
>
> Key: CB-8234
> URL: https://issues.apache.org/jira/browse/CB-8234
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Reporter: pvagare
>
> I get following error while I am taking the photo from iPhone camera.
> "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."
> My platform details. IOS 8.1.2, cordova 3.5,iPhone 6 Plus
> Please update the camera plugin as early as possible.
> Please refer the following JavaScript code.
> {code}
> navigator.camera.getPicture(onSuccess, onFail, {
> quality:100,
> destinationType:
> Camera.DestinationType.FILE_URI,
> sourceType:
> Camera.PictureSourceType.PHOTOLIBRARY,
> encodingType:
> Camera.EncodingType.JPEG,
> targetWidth:960,
> targetHeight:640
> });
> function onSuccess(imageURI){
> console.log(imageURI);
> }
> function onFail(){
> alert("Fail");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]