Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 557C818755 for ; Wed, 11 Nov 2015 19:30:39 +0000 (UTC) Received: (qmail 68422 invoked by uid 500); 11 Nov 2015 19:30:38 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 68356 invoked by uid 500); 11 Nov 2015 19:30:38 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Delivered-To: moderator for dev@cordova.apache.org Received: (qmail 61521 invoked by uid 99); 11 Nov 2015 19:25:45 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=JKUFtisAjBLfJtFVwefnFZ7SNVLjsItTrQ6L3UsE6Jo=; b=IatEaSiUookQBuyAfUmAY9Hhl1qLQw3crRE/3GHxJD5uTgPilZ4yF8J4qQw/+ETo/S IKWeBt4+3wLSrUFfqbnMl6Y0A1DhFPK/iJ0WkSIXTzk/sYedwYe2cE4gDuD2xul6AI3X phbNSOqKDPOyk/66g02pPZyaxxARbBMl+HYoP+Q9ZkOincMruHGLJ2h3Pd1DtM2hI3Sn hPxyPF9rEEao3bTEbV/xVMKmACAjUEmv7fJkPdE8Fm0BY7LH7EK89e6L8soLEe6ipa10 n/EfuriH92U1kqEVYcY9FVNa/1ioOaaR/lTzTUkMQQSiKutT0yRBSZIRlShlZaj3N9ok mFCw== MIME-Version: 1.0 X-Received: by 10.107.151.195 with SMTP id z186mr13274833iod.8.1447269941932; Wed, 11 Nov 2015 11:25:41 -0800 (PST) Date: Wed, 11 Nov 2015 14:25:41 -0500 Message-ID: Subject: New Camera Plugin iOS feature From: Sarah Goldman To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=001a1140f2eac87987052448ca6e --001a1140f2eac87987052448ca6e Content-Type: text/plain; charset=UTF-8 Hello, I am proposing a new feature for the camera plugin: the ability to manually dismiss camera popover views and view controllers on iOS. I encountered a need for this function when implementing a timeout based logout on my app. If the user timed out while sitting there with the camera open, I had no way to close the camera view controller and it would stay open on top of the login page. When they finally took a photo it would exit the camera and they would be on the login page. I would like to be able to call navigator.camera.dismiss() before I send a user to the login view after the timeout. dismiss would not take any callback handlers, instead it would trigger the error callback set with getPicture and send a message stating the camera was dismissed. I have created a Jira issue here: https://issues.apache.org/jira/browse/CB-9980 And I have submitted a pull request: https://github.com/apache/cordova-plugin-camera/pull/117 Thanks, Sarah Goldman --001a1140f2eac87987052448ca6e--