cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shazron <...@git.apache.org>
Subject [GitHub] cordova-plugin-camera pull request: Make dest NATIVE_URI compatibl...
Date Sat, 03 May 2014 00:54:02 GMT
Github user shazron commented on the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/20#issuecomment-42091967
  
    Found the culprit:
    https://github.com/shazron/cordova-plugin-camera/blob/e9c48138c1e3afdb7a18811042507026e3f5880b/src/ios/CDVCamera.m#L312
    
    If either of the first two conditions are used, it results in what I experienced. Your
code as you probably tested it used the third condition.
    
    This test case results in a success:
    ```
            navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
                                        destinationType: Camera.DestinationType.NATIVE_URI,
                                        sourceType : Camera.PictureSourceType.CAMERA,
                                        saveToPhotoAlbum: true,
                                        encodingType: Camera.EncodingType.JPEG,
                                        targetHeight: 200,
                                        targetWidth: 200,
                                        correctOrientation: true
                                        
                                        });
            
            function onSuccess(imageURI) {
                alert(imageURI);
            }
            
            function onFail(message) {
                alert('Failed because: ' + message);
            }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message