You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2016/07/31 15:12:20 UTC

[jira] [Commented] (CB-11410) navigator.camera.getPicture returns undefined instead of CameraPopoverHandle object

    [ https://issues.apache.org/jira/browse/CB-11410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15401183#comment-15401183 ] 

jcesarmobile commented on CB-11410:
-----------------------------------

There are two problems, first of all, the documentation is wrong and has been wrong since Dec 2013 (see CB-9070 for more details).
Second, cameraPopoverHandle.setPosition is not working, you have to dismiss the existing popover and then present the new one on the position you want.

I'm going to fix both. Will use CB-9070 for fixing the docs and your for fixing the setPosition.


> navigator.camera.getPicture returns undefined instead of CameraPopoverHandle object
> -----------------------------------------------------------------------------------
>
>                 Key: CB-11410
>                 URL: https://issues.apache.org/jira/browse/CB-11410
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs, Plugin Camera
>    Affects Versions: Master
>         Environment: iOS
>            Reporter: Yazeed Fares
>            Priority: Critical
>
> The camera plugin documentation describes that you can control the camera popover when device orientation changes, I tried the example but is is not working, so I went to the code to see what is happening and noticed that the navigator.camera.getPicture function doesn't return anything because the lines that returns the CameraPopoverHandle object are commented out.
> So I uncommented them to test but the issue is still happening, there is something wrong in the native code.
> My test was on real iPad iOS 9.3.2 and  on iOS simulator with iOS 8.4



--
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