Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B363CA95 for ; Fri, 16 Jan 2015 06:52:41 +0000 (UTC) Received: (qmail 41348 invoked by uid 500); 16 Jan 2015 06:52:36 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 41328 invoked by uid 500); 16 Jan 2015 06:52:36 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 40995 invoked by uid 99); 16 Jan 2015 06:52:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jan 2015 06:52:36 +0000 Date: Fri, 16 Jan 2015 06:52:36 +0000 (UTC) From: "Prashant Tiwari (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-8299) Camera Plugin does not capture the image. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8299?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1427988= 9#comment-14279889 ]=20 Prashant Tiwari commented on CB-8299: ------------------------------------- I have tested above code is working fine in iPhone 4s and iPhone 5s. but n= ot working on the iPhone 6 /iPhone 6 plus. > Camera Plugin does not capture the image. > ----------------------------------------- > > Key: CB-8299 > URL: https://issues.apache.org/jira/browse/CB-8299 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Reporter: Prashant Tiwari > > The camera is causing problems for me in iOS 8.1. The camera turns on and= it appears to take the picture. However, the success and failure functions= are never called,Instead, the console shows the following text:=20 > "Snapshotting a view that has not been rendered results in an empty snaps= hot. Ensure your view has been rendered at least once before snapshotting o= r snapshot after screen updates. > I have used the following code. Please refer the code. > navigator.camera.getPicture(success, fail, { > quality: 50, > destinationType: Camera.Destinati= onType.FILE_URI, > encodingType: Camera.EncodingType= .JPEG, > =C2=A0 =C2=A0 =C2=A0targetWidth: 960, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 targetHe= ight: 640 > }); > function success(URL){ > console.log(URL); > } > function fail(){ > console.log("Error"); > } > Cordova details. > Cordova 3.5 > IOS 8.1 > iPhone 6 plus for testing. > Latest camera plugin. -- 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