[ https://issues.apache.org/jira/browse/CB-9980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sarah Goldman updated CB-9980: ------------------------------ Description: This is based on a pull request I submitted here: https://github.com/apache/cordova-plugin-camera/pull/117 I would like to add a new function that allows one to dismiss any 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 triggers the error callback set with getPicture and sends a message stating the camera was dismissed. was: This is based on a pull request I submitted here: https://github.com/apache/cordova-plugin-camera/pull/117 I would like to add a new function that allows one to dismiss any 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 does not take any callback handlers, instead it triggers the error callback set with getPicture and sends a message stating the camera was dismissed. > Ability to manually dismiss camera popover views and view controllers on iOS > ---------------------------------------------------------------------------- > > Key: CB-9980 > URL: https://issues.apache.org/jira/browse/CB-9980 > Project: Apache Cordova > Issue Type: New Feature > Components: Plugin Camera > Environment: iOS > Reporter: Sarah Goldman > Priority: Minor > Labels: feature, iOS > > This is based on a pull request I submitted here: > https://github.com/apache/cordova-plugin-camera/pull/117 > I would like to add a new function that allows one to dismiss any 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 triggers the error > callback set with getPicture and sends a message stating the camera was > dismissed. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org